ext4: do not enable delalloc by default for ext2
Signed-off-by: Brian Foster <bfoster@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
5e7bbef19c
commit
bc0b75f77a
1 changed files with 1 additions and 1 deletions
|
@ -3411,7 +3411,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
|
||||||
* enable delayed allocation by default
|
* enable delayed allocation by default
|
||||||
* Use -o nodelalloc to turn it off
|
* Use -o nodelalloc to turn it off
|
||||||
*/
|
*/
|
||||||
if (!IS_EXT3_SB(sb) &&
|
if (!IS_EXT3_SB(sb) && !IS_EXT2_SB(sb) &&
|
||||||
((def_mount_opts & EXT4_DEFM_NODELALLOC) == 0))
|
((def_mount_opts & EXT4_DEFM_NODELALLOC) == 0))
|
||||||
set_opt(sb, DELALLOC);
|
set_opt(sb, DELALLOC);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue