Commit cf7ab00a authored by Anna Schumaker's avatar Anna Schumaker Committed by Trond Myklebust

NFS: Remove the nfs4_label argument from nfs_fhget()

Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent cc6f3298
...@@ -697,7 +697,7 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry, ...@@ -697,7 +697,7 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry,
goto out; goto out;
} }
inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr, entry->fattr->label); inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr);
alias = d_splice_alias(inode, dentry); alias = d_splice_alias(inode, dentry);
d_lookup_done(dentry); d_lookup_done(dentry);
if (alias) { if (alias) {
...@@ -1782,7 +1782,7 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in ...@@ -1782,7 +1782,7 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in
res = ERR_PTR(error); res = ERR_PTR(error);
goto out; goto out;
} }
inode = nfs_fhget(dentry->d_sb, fhandle, fattr, fattr->label); inode = nfs_fhget(dentry->d_sb, fhandle, fattr);
res = ERR_CAST(inode); res = ERR_CAST(inode);
if (IS_ERR(res)) if (IS_ERR(res))
goto out; goto out;
...@@ -2059,7 +2059,7 @@ nfs_add_or_obtain(struct dentry *dentry, struct nfs_fh *fhandle, ...@@ -2059,7 +2059,7 @@ nfs_add_or_obtain(struct dentry *dentry, struct nfs_fh *fhandle,
if (error < 0) if (error < 0)
goto out_error; goto out_error;
} }
inode = nfs_fhget(dentry->d_sb, fhandle, fattr, fattr->label); inode = nfs_fhget(dentry->d_sb, fhandle, fattr);
d = d_splice_alias(inode, dentry); d = d_splice_alias(inode, dentry);
out: out:
dput(parent); dput(parent);
......
...@@ -103,7 +103,7 @@ nfs_fh_to_dentry(struct super_block *sb, struct fid *fid, ...@@ -103,7 +103,7 @@ nfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
goto out_free_fattr; goto out_free_fattr;
} }
inode = nfs_fhget(sb, server_fh, fattr, fattr->label); inode = nfs_fhget(sb, server_fh, fattr);
out_found: out_found:
dentry = d_obtain_alias(inode); dentry = d_obtain_alias(inode);
...@@ -138,7 +138,7 @@ nfs_get_parent(struct dentry *dentry) ...@@ -138,7 +138,7 @@ nfs_get_parent(struct dentry *dentry)
goto out; goto out;
} }
pinode = nfs_fhget(sb, &fh, fattr, fattr->label); pinode = nfs_fhget(sb, &fh, fattr);
parent = d_obtain_alias(pinode); parent = d_obtain_alias(pinode);
out: out:
nfs_free_fattr(fattr); nfs_free_fattr(fattr);
......
...@@ -91,7 +91,7 @@ int nfs_get_root(struct super_block *s, struct fs_context *fc) ...@@ -91,7 +91,7 @@ int nfs_get_root(struct super_block *s, struct fs_context *fc)
goto out_fattr; goto out_fattr;
} }
inode = nfs_fhget(s, ctx->mntfh, fsinfo.fattr, NULL); inode = nfs_fhget(s, ctx->mntfh, fsinfo.fattr);
if (IS_ERR(inode)) { if (IS_ERR(inode)) {
dprintk("nfs_get_root: get root inode failed\n"); dprintk("nfs_get_root: get root inode failed\n");
error = PTR_ERR(inode); error = PTR_ERR(inode);
......
...@@ -448,7 +448,7 @@ static void nfs_inode_init_dir(struct nfs_inode *nfsi) ...@@ -448,7 +448,7 @@ static void nfs_inode_init_dir(struct nfs_inode *nfsi)
* instead of inode number. * instead of inode number.
*/ */
struct inode * struct inode *
nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, struct nfs4_label *label) nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr)
{ {
struct nfs_find_desc desc = { struct nfs_find_desc desc = {
.fh = fh, .fh = fh,
...@@ -581,7 +581,7 @@ nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, st ...@@ -581,7 +581,7 @@ nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, st
fattr->size != 0) fattr->size != 0)
nfs_set_cache_invalid(inode, NFS_INO_INVALID_BLOCKS); nfs_set_cache_invalid(inode, NFS_INO_INVALID_BLOCKS);
nfs_setsecurity(inode, fattr, label); nfs_setsecurity(inode, fattr, fattr->label);
nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); nfsi->attrtimeo = NFS_MINATTRTIMEO(inode);
nfsi->attrtimeo_timestamp = now; nfsi->attrtimeo_timestamp = now;
......
...@@ -344,8 +344,7 @@ static struct file *__nfs42_ssc_open(struct vfsmount *ss_mnt, ...@@ -344,8 +344,7 @@ static struct file *__nfs42_ssc_open(struct vfsmount *ss_mnt,
goto out; goto out;
snprintf(read_name, len, SSC_READ_NAME_BODY, read_name_gen++); snprintf(read_name, len, SSC_READ_NAME_BODY, read_name_gen++);
r_ino = nfs_fhget(ss_mnt->mnt_root->d_inode->i_sb, src_fh, fattr, r_ino = nfs_fhget(ss_mnt->mnt_root->d_inode->i_sb, src_fh, fattr);
NULL);
if (IS_ERR(r_ino)) { if (IS_ERR(r_ino)) {
res = ERR_CAST(r_ino); res = ERR_CAST(r_ino);
goto out_free_name; goto out_free_name;
......
...@@ -2008,7 +2008,7 @@ nfs4_opendata_get_inode(struct nfs4_opendata *data) ...@@ -2008,7 +2008,7 @@ nfs4_opendata_get_inode(struct nfs4_opendata *data)
if (!(data->f_attr.valid & NFS_ATTR_FATTR)) if (!(data->f_attr.valid & NFS_ATTR_FATTR))
return ERR_PTR(-EAGAIN); return ERR_PTR(-EAGAIN);
inode = nfs_fhget(data->dir->d_sb, &data->o_res.fh, inode = nfs_fhget(data->dir->d_sb, &data->o_res.fh,
&data->f_attr, data->f_attr.label); &data->f_attr);
break; break;
default: default:
inode = d_inode(data->dentry); inode = d_inode(data->dentry);
......
...@@ -388,7 +388,7 @@ extern void nfs_zap_caches(struct inode *); ...@@ -388,7 +388,7 @@ extern void nfs_zap_caches(struct inode *);
extern void nfs_set_inode_stale(struct inode *inode); extern void nfs_set_inode_stale(struct inode *inode);
extern void nfs_invalidate_atime(struct inode *); extern void nfs_invalidate_atime(struct inode *);
extern struct inode *nfs_fhget(struct super_block *, struct nfs_fh *, extern struct inode *nfs_fhget(struct super_block *, struct nfs_fh *,
struct nfs_fattr *, struct nfs4_label *); struct nfs_fattr *);
struct inode *nfs_ilookup(struct super_block *sb, struct nfs_fattr *, struct nfs_fh *); struct inode *nfs_ilookup(struct super_block *sb, struct nfs_fattr *, struct nfs_fh *);
extern int nfs_refresh_inode(struct inode *, struct nfs_fattr *); extern int nfs_refresh_inode(struct inode *, struct nfs_fattr *);
extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr); extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr);
......
Markdown is supported
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