diff options
author | 2022-11-03 13:41:29 -0700 | |
---|---|---|
committer | 2022-11-03 13:41:29 -0700 | |
commit | 7f7bac08d9e31cd6e2c0ea1685c86ec6f1e7e03c (patch) | |
tree | b02d0641869ab9d8a6eeb733ada9b87fc6ca722d /fs/fuse/file.c | |
parent | Merge tag 'for-6.1-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux (diff) | |
parent | fuse: add file_modified() to fallocate (diff) | |
download | linux-dev-7f7bac08d9e31cd6e2c0ea1685c86ec6f1e7e03c.tar.xz linux-dev-7f7bac08d9e31cd6e2c0ea1685c86ec6f1e7e03c.zip |
Merge tag 'fuse-fixes-6.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse
Pull fuse fixes from Miklos Szeredi:
"Fix two rarely triggered but long-standing issues"
* tag 'fuse-fixes-6.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
fuse: add file_modified() to fallocate
fuse: fix readdir cache race
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r-- | fs/fuse/file.c | 4 |
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); |