From: Miklos Szeredi Date: Fri, 28 Oct 2022 12:25:20 +0000 (+0200) Subject: fuse: add file_modified() to fallocate X-Git-Tag: baikal/aarch64/sdk6.1~2717^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=0370d020b499bbee05596d11c931cb4dcffe7d74;p=kernel.git 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: 8c100d6116d5 ("fuse: add FALLOCATE operation") Cc: Signed-off-by: Miklos Szeredi --- diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 1a3afd469e3a9..71bfb663aac58 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);