diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 18:36:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 18:36:51 -0400 |
commit | bab08ab9646288f1b0b72a7aaeecdff94bd62c18 (patch) | |
tree | e301377f1ce9093a44b2cfb331439e15d79789ed /fs/ext4/super.c | |
parent | 281b59959707dfae03ce038cdf231bf4904e170c (diff) |
ext4: enforce bigalloc restrictions (e.g., no online resizing, etc.)
At least initially if the bigalloc feature is enabled, we will not
support non-extent mapped inodes, online resizing, online defrag, or
the FITRIM ioctl. This simplifies the initial implementation.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 823e7d9deee2..25a4bfe3f39f 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -2701,6 +2701,13 @@ static int ext4_feature_set_ok(struct super_block *sb, int readonly) | |||
2701 | return 0; | 2701 | return 0; |
2702 | } | 2702 | } |
2703 | } | 2703 | } |
2704 | if (EXT4_HAS_RO_COMPAT_FEATURE(sb, EXT4_FEATURE_RO_COMPAT_BIGALLOC) && | ||
2705 | !EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) { | ||
2706 | ext4_msg(sb, KERN_ERR, | ||
2707 | "Can't support bigalloc feature without " | ||
2708 | "extents feature\n"); | ||
2709 | return 0; | ||
2710 | } | ||
2704 | return 1; | 2711 | return 1; |
2705 | } | 2712 | } |
2706 | 2713 | ||