diff options
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 3e36508610b7..e0a8425ff74d 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -2488,7 +2488,8 @@ int ext4_ext_index_trans_blocks(struct inode *inode, int extents) | |||
2488 | 2488 | ||
2489 | static inline int get_default_free_blocks_flags(struct inode *inode) | 2489 | static inline int get_default_free_blocks_flags(struct inode *inode) |
2490 | { | 2490 | { |
2491 | if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) | 2491 | if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode) || |
2492 | ext4_test_inode_flag(inode, EXT4_INODE_EA_INODE)) | ||
2492 | return EXT4_FREE_BLOCKS_METADATA | EXT4_FREE_BLOCKS_FORGET; | 2493 | return EXT4_FREE_BLOCKS_METADATA | EXT4_FREE_BLOCKS_FORGET; |
2493 | else if (ext4_should_journal_data(inode)) | 2494 | else if (ext4_should_journal_data(inode)) |
2494 | return EXT4_FREE_BLOCKS_FORGET; | 2495 | return EXT4_FREE_BLOCKS_FORGET; |