summaryrefslogtreecommitdiff
path: root/fs/fuse
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2022-10-28 14:25:20 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2022-10-28 14:25:20 +0200
commit4a6f278d4827b59ba26ceae0ff4529ee826aa258 (patch)
tree07ac488eea871d0f4ea95a46ad9ea7b5f20fdaf0 /fs/fuse
parent9fa248c65bdbf5af0a2f74dd38575acfc8dfd2bf (diff)
downloadlinux-rpi-4a6f278d4827b59ba26ceae0ff4529ee826aa258.tar.gz
linux-rpi-4a6f278d4827b59ba26ceae0ff4529ee826aa258.tar.bz2
linux-rpi-4a6f278d4827b59ba26ceae0ff4529ee826aa258.zip
fuse: add file_modified() to fallocate
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: <stable@vger.kernel.org> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse')
-rw-r--r--fs/fuse/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 1a3afd469e3a..71bfb663aac5 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -3001,6 +3001,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);