NFS: Refactor nfs_instantiate() for dentry referencing callers
Since commit b0c6108ecf
("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>
This commit is contained in:

committed by
Anna Schumaker

parent
8593e01078
commit
406cd91533
@@ -490,6 +490,9 @@ extern const struct file_operations nfs_dir_operations;
|
||||
extern const struct dentry_operations nfs_dentry_operations;
|
||||
|
||||
extern void nfs_force_lookup_revalidate(struct inode *dir);
|
||||
extern struct dentry *nfs_add_or_obtain(struct dentry *dentry,
|
||||
struct nfs_fh *fh, struct nfs_fattr *fattr,
|
||||
struct nfs4_label *label);
|
||||
extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh,
|
||||
struct nfs_fattr *fattr, struct nfs4_label *label);
|
||||
extern int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags);
|
||||
|
Reference in New Issue
Block a user