aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/delegation.c
diff options
context:
space:
mode:
authorAlexandros Batsakis <batsakis@netapp.com>2009-12-05 13:19:11 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-12-05 13:19:11 -0500
commitb4a6f4966efc7e70dc8d8a9e60744de6845b14bf (patch)
tree72a2b2687975bc3629dd02efca6bc879fa2bcbfe /fs/nfs/delegation.c
parent07bccc2dd4e8745859f0fa7d120ea39320fbcdbf (diff)
downloadkernel_samsung_espresso10-b4a6f4966efc7e70dc8d8a9e60744de6845b14bf.zip
kernel_samsung_espresso10-b4a6f4966efc7e70dc8d8a9e60744de6845b14bf.tar.gz
kernel_samsung_espresso10-b4a6f4966efc7e70dc8d8a9e60744de6845b14bf.tar.bz2
nfs4: minor delegation cleaning
Signed-off-by: Alexandros Batsakis <batsakis@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/delegation.c')
-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 eeecd69..6fc9fe0 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)
rcu_read_lock();
list_for_each_entry_rcu(delegation, &clp->cl_delegations, super_list) {
- set_bit(NFS_DELEGATION_RETURN, &delegation->flags);
- set_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state);
+ nfs_mark_return_delegation(clp, delegation);
}
rcu_read_unlock();
}
@@ -427,8 +426,7 @@ static void nfs_client_mark_return_unreferenced_delegations(struct nfs_client *c
list_for_each_entry_rcu(delegation, &clp->cl_delegations, super_list) {
if (test_and_clear_bit(NFS_DELEGATION_REFERENCED, &delegation->flags))
continue;
- set_bit(NFS_DELEGATION_RETURN, &delegation->flags);
- set_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state);
+ nfs_mark_return_delegation(clp, delegation);
}
rcu_read_unlock();
}