diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 71e9e301e569..307e7dae3ab6 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -2975,6 +2975,10 @@ static long fuse_file_fallocate(struct file *file, int mode, loff_t offset, goto out; } + err = file_modified(file); + if (err) + goto out; + if (!(mode & FALLOC_FL_KEEP_SIZE)) set_bit(FUSE_I_SIZE_UNSTABLE, &fi->state);