Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eddffa40 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Remove unnecessary call to nfs_setsecurity in nfs_fhget()



We only need to call it on the creation of the inode.

Reported-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Cc: Steve Dickson <SteveD@redhat.com>
Cc: Dave Quigley <dpquigl@davequigley.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent e890db01
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -463,7 +463,6 @@ nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, st
		unlock_new_inode(inode);
		unlock_new_inode(inode);
	} else
	} else
		nfs_refresh_inode(inode, fattr);
		nfs_refresh_inode(inode, fattr);
		nfs_setsecurity(inode, fattr, label);
	dprintk("NFS: nfs_fhget(%s/%Ld fh_crc=0x%08x ct=%d)\n",
	dprintk("NFS: nfs_fhget(%s/%Ld fh_crc=0x%08x ct=%d)\n",
		inode->i_sb->s_id,
		inode->i_sb->s_id,
		(long long)NFS_FILEID(inode),
		(long long)NFS_FILEID(inode),