]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.2: Remove redundant checks in nfs_setsecurity+nfs4_label_init_security
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 4 Nov 2013 18:46:40 +0000 (13:46 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 4 Nov 2013 21:42:52 +0000 (16:42 -0500)
commit3d0970e9d266de2bcd5505962f9acba62fbc1d42
tree3e99cedfdeb6d582b4fd66a143994d2a86678516
parentd924fe39db0081e9ee248cb00bb742cc69dbd68f
NFSv4.2: Remove redundant checks in nfs_setsecurity+nfs4_label_init_security

We already check for nfs_server_capable(inode, NFS_CAP_SECURITY_LABEL)
in nfs4_label_alloc()
We check the minor version in _nfs4_server_capabilities before setting
NFS_CAP_SECURITY_LABEL.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
fs/nfs/nfs4proc.c