aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/extents.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 4423b11476af..5684f2510921 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -3281,6 +3281,9 @@ static int ext4_find_delalloc_range(struct inode *inode,
3281 ext4_lblk_t i, pg_lblk; 3281 ext4_lblk_t i, pg_lblk;
3282 pgoff_t index; 3282 pgoff_t index;
3283 3283
3284 if (!test_opt(inode->i_sb, DELALLOC))
3285 return 0;
3286
3284 /* reverse search wont work if fs block size is less than page size */ 3287 /* reverse search wont work if fs block size is less than page size */
3285 if (inode->i_blkbits < PAGE_CACHE_SHIFT) 3288 if (inode->i_blkbits < PAGE_CACHE_SHIFT)
3286 search_hint_reverse = 0; 3289 search_hint_reverse = 0;