aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/delegation.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c
index eeecd69c130c..6fc9fe0af3d0 100644
--- a/fs/nfs/delegation.c
+++ b/fs/nfs/delegation.c
@@ -391,8 +391,7 @@ static void nfs_client_mark_return_all_delegations(struct nfs_client *clp)
391 391
392 rcu_read_lock(); 392 rcu_read_lock();
393 list_for_each_entry_rcu(delegation, &clp->cl_delegations, super_list) { 393 list_for_each_entry_rcu(delegation, &clp->cl_delegations, super_list) {
394 set_bit(NFS_DELEGATION_RETURN, &delegation->flags); 394 nfs_mark_return_delegation(clp, delegation);
395 set_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state);
396 } 395 }
397 rcu_read_unlock(); 396 rcu_read_unlock();
398} 397}
@@ -427,8 +426,7 @@ static void nfs_client_mark_return_unreferenced_delegations(struct nfs_client *c
427 list_for_each_entry_rcu(delegation, &clp->cl_delegations, super_list) { 426 list_for_each_entry_rcu(delegation, &clp->cl_delegations, super_list) {
428 if (test_and_clear_bit(NFS_DELEGATION_REFERENCED, &delegation->flags)) 427 if (test_and_clear_bit(NFS_DELEGATION_REFERENCED, &delegation->flags))
429 continue; 428 continue;
430 set_bit(NFS_DELEGATION_RETURN, &delegation->flags); 429 nfs_mark_return_delegation(clp, delegation);
431 set_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state);
432 } 430 }
433 rcu_read_unlock(); 431 rcu_read_unlock();
434} 432}