From: Miklos Szeredi Date: Fri, 28 Oct 2022 12:25:20 +0000 (+0200) Subject: fuse: add file_modified() to fallocate X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0417f70b8588e03b16651897035bd99b0d144e93;p=linux.git fuse: add file_modified() to fallocate commit 4a6f278d4827b59ba26ceae0ff4529ee826aa258 upstream. Add missing file_modified() call to fuse_file_fallocate(). Without this fallocate on fuse failed to clear privileges. Fixes: 05ba1f082300 ("fuse: add FALLOCATE operation") Cc: Signed-off-by: Miklos Szeredi Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 71e9e301e569d..307e7dae3ab6b 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);