aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4proc.c6
-rw-r--r--fs/nfs/nfs4xdr.c12
2 files changed, 2 insertions, 16 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 64b67f353ed7..98eb48ddc25f 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -3462,7 +3462,6 @@ static int nfs4_commit_done_cb(struct rpc_task *task, struct nfs_commit_data *da
3462 rpc_restart_call_prepare(task); 3462 rpc_restart_call_prepare(task);
3463 return -EAGAIN; 3463 return -EAGAIN;
3464 } 3464 }
3465 nfs_refresh_inode(inode, data->res.fattr);
3466 return 0; 3465 return 0;
3467} 3466}
3468 3467
@@ -3477,11 +3476,6 @@ static void nfs4_proc_commit_setup(struct nfs_commit_data *data, struct rpc_mess
3477{ 3476{
3478 struct nfs_server *server = NFS_SERVER(data->inode); 3477 struct nfs_server *server = NFS_SERVER(data->inode);
3479 3478
3480 if (data->lseg) {
3481 data->args.bitmask = NULL;
3482 data->res.fattr = NULL;
3483 } else
3484 data->args.bitmask = server->cache_consistency_bitmask;
3485 if (data->commit_done_cb == NULL) 3479 if (data->commit_done_cb == NULL)
3486 data->commit_done_cb = nfs4_commit_done_cb; 3480 data->commit_done_cb = nfs4_commit_done_cb;
3487 data->res.server = server; 3481 data->res.server = server;
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 49483f19c5d3..db040e971932 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -421,13 +421,11 @@ static int nfs4_stat_to_errno(int);
421#define NFS4_enc_commit_sz (compound_encode_hdr_maxsz + \ 421#define NFS4_enc_commit_sz (compound_encode_hdr_maxsz + \
422 encode_sequence_maxsz + \ 422 encode_sequence_maxsz + \
423 encode_putfh_maxsz + \ 423 encode_putfh_maxsz + \
424 encode_commit_maxsz + \ 424 encode_commit_maxsz)
425 encode_getattr_maxsz)
426#define NFS4_dec_commit_sz (compound_decode_hdr_maxsz + \ 425#define NFS4_dec_commit_sz (compound_decode_hdr_maxsz + \
427 decode_sequence_maxsz + \ 426 decode_sequence_maxsz + \
428 decode_putfh_maxsz + \ 427 decode_putfh_maxsz + \
429 decode_commit_maxsz + \ 428 decode_commit_maxsz)
430 decode_getattr_maxsz)
431#define NFS4_enc_open_sz (compound_encode_hdr_maxsz + \ 429#define NFS4_enc_open_sz (compound_encode_hdr_maxsz + \
432 encode_sequence_maxsz + \ 430 encode_sequence_maxsz + \
433 encode_putfh_maxsz + \ 431 encode_putfh_maxsz + \
@@ -2425,8 +2423,6 @@ static void nfs4_xdr_enc_commit(struct rpc_rqst *req, struct xdr_stream *xdr,
2425 encode_sequence(xdr, &args->seq_args, &hdr); 2423 encode_sequence(xdr, &args->seq_args, &hdr);
2426 encode_putfh(xdr, args->fh, &hdr); 2424 encode_putfh(xdr, args->fh, &hdr);
2427 encode_commit(xdr, args, &hdr); 2425 encode_commit(xdr, args, &hdr);
2428 if (args->bitmask)
2429 encode_getfattr(xdr, args->bitmask, &hdr);
2430 encode_nops(&hdr); 2426 encode_nops(&hdr);
2431} 2427}
2432 2428
@@ -6306,10 +6302,6 @@ static int nfs4_xdr_dec_commit(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
6306 if (status) 6302 if (status)
6307 goto out; 6303 goto out;
6308 status = decode_commit(xdr, res); 6304 status = decode_commit(xdr, res);
6309 if (status)
6310 goto out;
6311 if (res->fattr)
6312 decode_getfattr(xdr, res->fattr, res->server);
6313out: 6305out:
6314 return status; 6306 return status;
6315} 6307}