aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/f2fs/file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 7f9ea9271ebe..88593c5e743c 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -545,6 +545,11 @@ static long f2fs_fallocate(struct file *file, int mode,
545 else 545 else
546 ret = expand_inode_data(inode, offset, len, mode); 546 ret = expand_inode_data(inode, offset, len, mode);
547 547
548 if (!ret) {
549 inode->i_mtime = inode->i_ctime = CURRENT_TIME;
550 mark_inode_dirty(inode);
551 }
552
548 f2fs_balance_fs(sbi); 553 f2fs_balance_fs(sbi);
549 return ret; 554 return ret;
550} 555}