Skip to content
Snippets Groups Projects
Commit f6fbcc1d authored by Benjamin Coddington's avatar Benjamin Coddington Committed by Yang Yingliang
Browse files

NFS: Refactor nfs_instantiate() for dentry referencing callers


mainline inclusion
from mainline-v5.4-rc1
commit 406cd915
category: bugfix
bugzilla: NA
CVE: NA

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

Since commit b0c6108e ("nfs_instantiate(): prevent multiple aliases for
directory inode"), nfs_instantiate() may succeed without actually
instantiating the dentry that was passed in.  That can be problematic for
some callers in NFSv3, so this patch breaks things up so we can get the
actual dentry obtained.

Signed-off-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: default avatarZhang Yi <yi.zhang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 3a01d1b5
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment