Skip to content
Commit 30ca22c7 authored by Patrick J. LoPresti's avatar Patrick J. LoPresti Committed by Joel Becker
Browse files

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: default avatarPatrick LoPresti <lopresti@gmail.com>
Cc: linux-ext4@vger.kernel.org
Acked-by: default avatarAndreas Dilger <adilger@dilger.ca>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent 729963a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment