NFS: Refactor nfs_instantiate() for dentry referencing callers
authorBenjamin Coddington <bcodding@redhat.com>
Fri, 13 Sep 2019 12:29:02 +0000 (08:29 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 20 Sep 2019 19:15:24 +0000 (15:15 -0400)
commit406cd91533dcc5e82ef2373c39e6a531d944131e
tree51b5e97da1719d81747f969df79ce7d180a43bf6
parent8593e010786181df887b001824ff8f3e52e2098f
NFS: Refactor nfs_instantiate() for dentry referencing callers

Since commit b0c6108ecf64 ("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: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c
include/linux/nfs_fs.h