ext4: Add feature set check helper for mount & remount paths
authorEric Sandeen <sandeen@redhat.com>
Tue, 18 Aug 2009 04:20:23 +0000 (00:20 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:06:14 +0000 (08:06 -0800)
commite139f5b68b7aea8959a7e0fcd1f08a70c19846ba
tree8ba29754a2e6d0bcf3f5894360a21e8b39baa517
parent74ba8fe3abdfcd3f58e01ebb15b1fe9d2db86053
ext4: Add feature set check helper for mount & remount paths

(cherry picked from commit a13fb1a4533f26c1e2b0204d5283b696689645af)

A user reported that although his root ext4 filesystem was mounting
fine, other filesystems would not mount, with the:

"Filesystem with huge files cannot be mounted RDWR without CONFIG_LBDAF"

error on his 32-bit box built without CONFIG_LBDAF.  This is because
the test at mount time for this situation was not being re-checked
on remount, and the normal boot process makes an ro->rw transition,
so this was being missed.

Refactor to make a common helper function to test the filesystem
features against the type of mount request (RO vs. RW) so that we
stay consistent.

Addresses Red-Hat-Bugzilla: #517650

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c