f2fs: fix time update in case of f2fs fallocate
Subsystems (2)
PATCH 2/4 f2fs: fix time update in case of f2fs fallocate
From: Namjae Jeon <[email protected]>
After doing a punch hole or expanding inode doing fallocation. The change and modification time are not update for the file. So, update time after no issue is observed in fallocate.
Signed-off-by Namjae Jeon <[email protected]>
Signed-off-by Amit Sahrawat <[email protected]>
--- fs/f2fs/file.c | 5 +++++ 1 file changed, 5 insertions(+)
fs/f2fs/file.c +5 -0
@@ -545,6 +545,11 @@ static long f2fs_fallocate(struct file *file, int mode,else ret =expand_inode_data (inode, offset, len, mode); +if (!ret) { + inode->i_mtime = inode->i_ctime =CURRENT_TIME ; +mark_inode_dirty (inode); + } +f2fs_balance_fs (sbi);return ret; }
Signature · 1 line
1.7.9.5