diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 06f200234d00e98ae1a76f53243b06ef10e34c7a..defa068b4c7cd3911f95f3776800430772f67df9 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1744,6 +1744,10 @@ static long f2fs_fallocate(struct file *file, int mode, inode_lock(inode); + ret = file_modified(file); + if (ret) + goto out; + if (mode & FALLOC_FL_PUNCH_HOLE) { if (offset >= inode->i_size) goto out;