fs/affs: make root lookup from blkdev logical size
authorPranay Kr. Srivastava <pranjas@gmail.com>
Wed, 9 Sep 2015 22:39:09 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commite852d82a5b55b44ce8be89078d0dfbddbeae3211
tree51b340100592465cea55ca9350725e11d5d81b8a
parent9a5bc726d559221a3394bb8ef97d0abc1ee94d00
fs/affs: make root lookup from blkdev logical size

This patch resolves https://bugzilla.kernel.org/show_bug.cgi?id=16531.

When logical blkdev size > 512 then sector numbers become larger than the
device can support.

Make affs start lookup based on the device's logical sector size instead
of 512.

Reported-by: Mark <markk@clara.co.uk>
Suggested-by: Mark <markk@clara.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/affs/super.c