Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFS: Remove the nfs4_label argument from nfs_fhget()

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>

authored by

Anna Schumaker and committed by
Trond Myklebust
cf7ab00a cc6f3298

+11 -12
+3 -3
fs/nfs/dir.c
··· 697 697 goto out; 698 698 } 699 699 700 - inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr, entry->fattr->label); 700 + inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr); 701 701 alias = d_splice_alias(inode, dentry); 702 702 d_lookup_done(dentry); 703 703 if (alias) { ··· 1782 1782 res = ERR_PTR(error); 1783 1783 goto out; 1784 1784 } 1785 - inode = nfs_fhget(dentry->d_sb, fhandle, fattr, fattr->label); 1785 + inode = nfs_fhget(dentry->d_sb, fhandle, fattr); 1786 1786 res = ERR_CAST(inode); 1787 1787 if (IS_ERR(res)) 1788 1788 goto out; ··· 2059 2059 if (error < 0) 2060 2060 goto out_error; 2061 2061 } 2062 - inode = nfs_fhget(dentry->d_sb, fhandle, fattr, fattr->label); 2062 + inode = nfs_fhget(dentry->d_sb, fhandle, fattr); 2063 2063 d = d_splice_alias(inode, dentry); 2064 2064 out: 2065 2065 dput(parent);
+2 -2
fs/nfs/export.c
··· 103 103 goto out_free_fattr; 104 104 } 105 105 106 - inode = nfs_fhget(sb, server_fh, fattr, fattr->label); 106 + inode = nfs_fhget(sb, server_fh, fattr); 107 107 108 108 out_found: 109 109 dentry = d_obtain_alias(inode); ··· 138 138 goto out; 139 139 } 140 140 141 - pinode = nfs_fhget(sb, &fh, fattr, fattr->label); 141 + pinode = nfs_fhget(sb, &fh, fattr); 142 142 parent = d_obtain_alias(pinode); 143 143 out: 144 144 nfs_free_fattr(fattr);
+1 -1
fs/nfs/getroot.c
··· 91 91 goto out_fattr; 92 92 } 93 93 94 - inode = nfs_fhget(s, ctx->mntfh, fsinfo.fattr, NULL); 94 + inode = nfs_fhget(s, ctx->mntfh, fsinfo.fattr); 95 95 if (IS_ERR(inode)) { 96 96 dprintk("nfs_get_root: get root inode failed\n"); 97 97 error = PTR_ERR(inode);
+2 -2
fs/nfs/inode.c
··· 448 448 * instead of inode number. 449 449 */ 450 450 struct inode * 451 - nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, struct nfs4_label *label) 451 + nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr) 452 452 { 453 453 struct nfs_find_desc desc = { 454 454 .fh = fh, ··· 581 581 fattr->size != 0) 582 582 nfs_set_cache_invalid(inode, NFS_INO_INVALID_BLOCKS); 583 583 584 - nfs_setsecurity(inode, fattr, label); 584 + nfs_setsecurity(inode, fattr, fattr->label); 585 585 586 586 nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); 587 587 nfsi->attrtimeo_timestamp = now;
+1 -2
fs/nfs/nfs4file.c
··· 344 344 goto out; 345 345 snprintf(read_name, len, SSC_READ_NAME_BODY, read_name_gen++); 346 346 347 - r_ino = nfs_fhget(ss_mnt->mnt_root->d_inode->i_sb, src_fh, fattr, 348 - NULL); 347 + r_ino = nfs_fhget(ss_mnt->mnt_root->d_inode->i_sb, src_fh, fattr); 349 348 if (IS_ERR(r_ino)) { 350 349 res = ERR_CAST(r_ino); 351 350 goto out_free_name;
+1 -1
fs/nfs/nfs4proc.c
··· 2008 2008 if (!(data->f_attr.valid & NFS_ATTR_FATTR)) 2009 2009 return ERR_PTR(-EAGAIN); 2010 2010 inode = nfs_fhget(data->dir->d_sb, &data->o_res.fh, 2011 - &data->f_attr, data->f_attr.label); 2011 + &data->f_attr); 2012 2012 break; 2013 2013 default: 2014 2014 inode = d_inode(data->dentry);
+1 -1
include/linux/nfs_fs.h
··· 388 388 extern void nfs_set_inode_stale(struct inode *inode); 389 389 extern void nfs_invalidate_atime(struct inode *); 390 390 extern struct inode *nfs_fhget(struct super_block *, struct nfs_fh *, 391 - struct nfs_fattr *, struct nfs4_label *); 391 + struct nfs_fattr *); 392 392 struct inode *nfs_ilookup(struct super_block *sb, struct nfs_fattr *, struct nfs_fh *); 393 393 extern int nfs_refresh_inode(struct inode *, struct nfs_fattr *); 394 394 extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr);