mirror-linux/fs/fuse
Jiachen Zhang 7ca973d830 fuse: always revalidate rename target dentry
commit ccc031e26a upstream.

The previous commit df8629af29 ("fuse: always revalidate if exclusive
create") ensures that the dentries are revalidated on O_EXCL creates.  This
commit complements it by also performing revalidation for rename target
dentries.  Otherwise, a rename target file that only exists in kernel
dentry cache but not in the filesystem will result in EEXIST if
RENAME_NOREPLACE flag is used.

Signed-off-by: Jiachen Zhang <zhangjiachen.jaycee@bytedance.com>
Signed-off-by: Zhang Tianci <zhangtianci.1997@bytedance.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Yang Bo <yb203166@antfin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-26 14:28:42 +02:00
..
Kconfig
Makefile
acl.c
control.c
cuse.c
dax.c
dev.c mm: multi-gen LRU: groundwork 2022-09-26 19:46:09 -07:00
dir.c fuse: always revalidate rename target dentry 2023-04-26 14:28:42 +02:00
file.c attr: use consistent sgid stripping checks 2023-03-03 11:52:25 +01:00
fuse_i.h fuse: implement ->tmpfile() 2022-09-24 07:00:00 +02:00
inode.c
ioctl.c fuse: add inode/permission checks to fileattr_get/fileattr_set 2023-03-10 09:34:24 +01:00
readdir.c fuse: fix readdir cache race 2022-10-20 17:18:58 +02:00
virtio_fs.c
xattr.c