diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-01-06 14:53:16 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-01-06 14:53:16 -0500 |
commit | 83982b6f47201c4c7767210d24d7d8c99567a0b3 (patch) | |
tree | f1c19b1c6b5a34dd0c5de7519b78414b7a9267ee /fs/ext4/extents.c | |
parent | 4d783b093cd4f3e2738527365979cbd1c5101065 (diff) | |
download | kernel_samsung_crespo-83982b6f47201c4c7767210d24d7d8c99567a0b3.zip kernel_samsung_crespo-83982b6f47201c4c7767210d24d7d8c99567a0b3.tar.gz kernel_samsung_crespo-83982b6f47201c4c7767210d24d7d8c99567a0b3.tar.bz2 |
ext4: Remove "extents" mount option
This mount option is largely superfluous, and in fact the way it was
implemented was buggy; if a filesystem which did not have the extents
feature flag was mounted -o extents, the filesystem would attempt to
create and use extents-based file even though the extents feature flag
was not eabled. The simplest thing to do is to nuke the mount option
entirely. It's not all that useful to force the non-creation of new
extent-based files if the filesystem can support it.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index c64080e..240cf0d 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -2247,7 +2247,7 @@ void ext4_ext_init(struct super_block *sb) * possible initialization would be here */ - if (test_opt(sb, EXTENTS)) { + if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) { printk(KERN_INFO "EXT4-fs: file extents enabled"); #ifdef AGGRESSIVE_TEST printk(", aggressive tests"); @@ -2272,7 +2272,7 @@ void ext4_ext_init(struct super_block *sb) */ void ext4_ext_release(struct super_block *sb) { - if (!test_opt(sb, EXTENTS)) + if (!EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) return; #ifdef EXTENTS_STATS |