Commit b98448c8 authored by Jiachen Zhang's avatar Jiachen Zhang Committed by sanglipeng
Browse files

fuse: always revalidate rename target dentry

stable inclusion
from stable-v5.10.179
commit 03cefde986f1504fb84c92403c2b6c133fc9bdb0
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8C809

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=03cefde986f1504fb84c92403c2b6c133fc9bdb0



--------------------------------

commit ccc031e2 upstream.

The previous commit df8629af ("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: default avatarJiachen Zhang <zhangjiachen.jaycee@bytedance.com>
Signed-off-by: default avatarZhang Tianci <zhangtianci.1997@bytedance.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
Signed-off-by: default avatarYang Bo <yb203166@antfin.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 42c89990
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment