Commit 3af60a49 authored by Namjae Jeon's avatar Namjae Jeon Committed by Jaegeuk Kim
Browse files

f2fs: fix time update in case of f2fs fallocate

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: default avatarNamjae Jeon <>
Signed-off-by: default avatarAmit Sahrawat <>
Signed-off-by: default avatarJaegeuk Kim <>
parent a07ef784
......@@ -545,6 +545,11 @@ static long f2fs_fallocate(struct file *file, int mode,
ret = expand_inode_data(inode, offset, len, mode);
if (!ret) {
inode->i_mtime = inode->i_ctime = CURRENT_TIME;
return ret;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment