aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2013-12-09 06:04:23 -0500
committerJ. Bruce Fields <bfields@redhat.com>2014-01-03 13:44:22 -0500
commit43212cc7dfee0ca33d1f0f23652c70317ee031e6 (patch)
treeb4f25d3d4b759cf75b8a7cd141e1a1ca50ec2d33 /fs/nfsd/nfs4xdr.c
parenta9f7b4a06c9704fa3cfe0b0601347e03289a7407 (diff)
nfsd: using nfsd4_encode_noop for encoding destroy_session/free_stateid
Get rid of the extra code, using nfsd4_encode_noop for encoding destroy_session and free_stateid. And, delete unused argument (fr_status) int nfsd4_free_stateid. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index dbd64a9d268b..776d2f639d6e 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -3501,28 +3501,6 @@ nfsd4_encode_create_session(struct nfsd4_compoundres *resp, __be32 nfserr,
3501} 3501}
3502 3502
3503static __be32 3503static __be32
3504nfsd4_encode_destroy_session(struct nfsd4_compoundres *resp, __be32 nfserr,
3505 struct nfsd4_destroy_session *destroy_session)
3506{
3507 return nfserr;
3508}
3509
3510static __be32
3511nfsd4_encode_free_stateid(struct nfsd4_compoundres *resp, __be32 nfserr,
3512 struct nfsd4_free_stateid *free_stateid)
3513{
3514 __be32 *p;
3515
3516 if (nfserr)
3517 return nfserr;
3518
3519 RESERVE_SPACE(4);
3520 *p++ = nfserr;
3521 ADJUST_ARGS();
3522 return nfserr;
3523}
3524
3525static __be32
3526nfsd4_encode_sequence(struct nfsd4_compoundres *resp, __be32 nfserr, 3504nfsd4_encode_sequence(struct nfsd4_compoundres *resp, __be32 nfserr,
3527 struct nfsd4_sequence *seq) 3505 struct nfsd4_sequence *seq)
3528{ 3506{
@@ -3620,8 +3598,8 @@ static nfsd4_enc nfsd4_enc_ops[] = {
3620 [OP_BIND_CONN_TO_SESSION] = (nfsd4_enc)nfsd4_encode_bind_conn_to_session, 3598 [OP_BIND_CONN_TO_SESSION] = (nfsd4_enc)nfsd4_encode_bind_conn_to_session,
3621 [OP_EXCHANGE_ID] = (nfsd4_enc)nfsd4_encode_exchange_id, 3599 [OP_EXCHANGE_ID] = (nfsd4_enc)nfsd4_encode_exchange_id,
3622 [OP_CREATE_SESSION] = (nfsd4_enc)nfsd4_encode_create_session, 3600 [OP_CREATE_SESSION] = (nfsd4_enc)nfsd4_encode_create_session,
3623 [OP_DESTROY_SESSION] = (nfsd4_enc)nfsd4_encode_destroy_session, 3601 [OP_DESTROY_SESSION] = (nfsd4_enc)nfsd4_encode_noop,
3624 [OP_FREE_STATEID] = (nfsd4_enc)nfsd4_encode_free_stateid, 3602 [OP_FREE_STATEID] = (nfsd4_enc)nfsd4_encode_noop,
3625 [OP_GET_DIR_DELEGATION] = (nfsd4_enc)nfsd4_encode_noop, 3603 [OP_GET_DIR_DELEGATION] = (nfsd4_enc)nfsd4_encode_noop,
3626 [OP_GETDEVICEINFO] = (nfsd4_enc)nfsd4_encode_noop, 3604 [OP_GETDEVICEINFO] = (nfsd4_enc)nfsd4_encode_noop,
3627 [OP_GETDEVICELIST] = (nfsd4_enc)nfsd4_encode_noop, 3605 [OP_GETDEVICELIST] = (nfsd4_enc)nfsd4_encode_noop,