aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4state.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-09-20 20:31:51 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-09-28 16:03:12 -0400
commit1f7977c1368afc483908281daaffd31bca5a8d1e (patch)
treeab8bcc2e66719825ee91a5559250fc21882cf397 /fs/nfs/nfs4state.c
parent7fdab069b7172f2348cf3d87e19c6c24340292bf (diff)
NFSv4.1: Simplify the pNFS return-on-close code
Confine it to the nfs4_do_close() code. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r--fs/nfs/nfs4state.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index fc6cfe68ad1d..a5331ec094a6 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -729,11 +729,8 @@ static void __nfs4_close(struct nfs4_state *state,
729 if (!call_close) { 729 if (!call_close) {
730 nfs4_put_open_state(state); 730 nfs4_put_open_state(state);
731 nfs4_put_state_owner(owner); 731 nfs4_put_state_owner(owner);
732 } else { 732 } else
733 bool roc = pnfs_roc(state->inode); 733 nfs4_do_close(state, gfp_mask, wait);
734
735 nfs4_do_close(state, gfp_mask, wait, roc);
736 }
737} 734}
738 735
739void nfs4_close_state(struct nfs4_state *state, fmode_t fmode) 736void nfs4_close_state(struct nfs4_state *state, fmode_t fmode)