]> git.baikalelectronics.ru Git - kernel.git/commit
ext3/ext4: Factor out disk addressability check
authorPatrick J. LoPresti <lopresti@gmail.com>
Thu, 22 Jul 2010 22:03:41 +0000 (15:03 -0700)
committerJoel Becker <joel.becker@oracle.com>
Fri, 10 Sep 2010 15:41:42 +0000 (08:41 -0700)
commitbddb8d7823ed18cd7d5ffe497b50a35c51e351ee
tree0da339bf657ae19a39baf3c4d31ebfb0ae6c09ce
parent44153f03c0863ce2801e3d566c5d5eb7d48eed0a
ext3/ext4: Factor out disk addressability check

As part of adding support for OCFS2 to mount huge volumes, we need to
check that the sector_t and page cache of the system are capable of
addressing the entire volume.

An identical check already appears in ext3 and ext4.  This patch moves
the addressability check into its own function in fs/libfs.c and
modifies ext3 and ext4 to invoke it.

[Edited to -EINVAL instead of BUG_ON() for bad blocksize_bits -- Joel]

Signed-off-by: Patrick LoPresti <lopresti@gmail.com>
Cc: linux-ext4@vger.kernel.org
Acked-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ext3/super.c
fs/ext4/super.c
fs/libfs.c
include/linux/fs.h