aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/nfs4proc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index b02c4cc7b0a9..d436c576e988 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -4657,7 +4657,7 @@ static int _nfs4_do_set_security_label(struct inode *inode,
4657 struct iattr sattr = {0}; 4657 struct iattr sattr = {0};
4658 struct nfs_server *server = NFS_SERVER(inode); 4658 struct nfs_server *server = NFS_SERVER(inode);
4659 const u32 bitmask[3] = { 0, 0, FATTR4_WORD2_SECURITY_LABEL }; 4659 const u32 bitmask[3] = { 0, 0, FATTR4_WORD2_SECURITY_LABEL };
4660 struct nfs_setattrargs args = { 4660 struct nfs_setattrargs arg = {
4661 .fh = NFS_FH(inode), 4661 .fh = NFS_FH(inode),
4662 .iap = &sattr, 4662 .iap = &sattr,
4663 .server = server, 4663 .server = server,
@@ -4671,14 +4671,14 @@ static int _nfs4_do_set_security_label(struct inode *inode,
4671 }; 4671 };
4672 struct rpc_message msg = { 4672 struct rpc_message msg = {
4673 .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_SETATTR], 4673 .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_SETATTR],
4674 .rpc_argp = &args, 4674 .rpc_argp = &arg,
4675 .rpc_resp = &res, 4675 .rpc_resp = &res,
4676 }; 4676 };
4677 int status; 4677 int status;
4678 4678
4679 nfs4_stateid_copy(&args.stateid, &zero_stateid); 4679 nfs4_stateid_copy(&arg.stateid, &zero_stateid);
4680 4680
4681 status = rpc_call_sync(server->client, &msg, 0); 4681 status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1);
4682 if (status) 4682 if (status)
4683 dprintk("%s failed: %d\n", __func__, status); 4683 dprintk("%s failed: %d\n", __func__, status);
4684 4684