aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/nfs4proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 0d9fa18aa243..872ff6756723 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -3200,9 +3200,10 @@ static void nfs4_close_prepare(struct rpc_task *task, void *data)
3200 goto out_wait; 3200 goto out_wait;
3201 } 3201 }
3202 3202
3203 if (calldata->arg.fmode == 0) { 3203 if (calldata->arg.fmode == 0)
3204 task->tk_msg.rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_CLOSE]; 3204 task->tk_msg.rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_CLOSE];
3205 3205
3206 if (calldata->arg.fmode == 0 || calldata->arg.fmode == FMODE_READ) {
3206 /* Close-to-open cache consistency revalidation */ 3207 /* Close-to-open cache consistency revalidation */
3207 if (!nfs4_have_delegation(inode, FMODE_READ)) 3208 if (!nfs4_have_delegation(inode, FMODE_READ))
3208 calldata->arg.bitmask = NFS_SERVER(inode)->cache_consistency_bitmask; 3209 calldata->arg.bitmask = NFS_SERVER(inode)->cache_consistency_bitmask;