mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
b944dba31d
commit
fab99ebe39
2 changed files with 0 additions and 9 deletions
|
@ -105,9 +105,6 @@ nfs4_label_init_security(struct inode *dir, struct dentry *dentry,
|
|||
if (nfs_server_capable(dir, NFS_CAP_SECURITY_LABEL) == 0)
|
||||
return NULL;
|
||||
|
||||
if (NFS_SERVER(dir)->nfs_client->cl_minorversion < 2)
|
||||
return NULL;
|
||||
|
||||
err = security_dentry_init_security(dentry, sattr->ia_mode,
|
||||
&dentry->d_name, (void **)&label->label, &label->len);
|
||||
if (err == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue