aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 91341ec6e06a..f1089cba913a 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -4420,6 +4420,8 @@ retry:
4420 ext4_falloc_update_inode(inode, mode, new_size, 4420 ext4_falloc_update_inode(inode, mode, new_size,
4421 (map.m_flags & EXT4_MAP_NEW)); 4421 (map.m_flags & EXT4_MAP_NEW));
4422 ext4_mark_inode_dirty(handle, inode); 4422 ext4_mark_inode_dirty(handle, inode);
4423 if ((file->f_flags & O_SYNC) && ret >= max_blocks)
4424 ext4_handle_sync(handle);
4423 ret2 = ext4_journal_stop(handle); 4425 ret2 = ext4_journal_stop(handle);
4424 if (ret2) 4426 if (ret2)
4425 break; 4427 break;