diff options
author | Neil Brown <neilb@cse.unsw.edu.au> | 2005-03-30 17:00:57 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-30 17:00:57 -0800 |
commit | efeea01e3ade8d057d2baa99bb8ba2c650d35682 (patch) | |
tree | b8697dbe3026504922b2b3497be2b8f8a408c062 | |
parent | 6785603ff6ee4c3500ffc78fdeee0f59ace3591b (diff) | |
download | history-efeea01e3ade8d057d2baa99bb8ba2c650d35682.tar.gz |
[PATCH] nfsd4: rename release_delegation
Release_delegation is responsible for removing the delegation's connection
with the v4 state and with the lease subsystem. The word "unhash" seems
closer than "release" as a description of this....
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | fs/nfsd/nfs4state.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 6d2923b8126e74..579f7fea796811 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -176,15 +176,11 @@ nfs4_put_delegation(struct nfs4_delegation *dp) } } -/* release_delegation: - * - * Remove the associated file_lock first, then remove the delegation. +/* Remove the associated file_lock first, then remove the delegation. * lease_modify() is called to remove the FS_LEASE file_lock from * the i_flock list, eventually calling nfsd's lock_manager * fl_release_callback. - * */ - static void nfs4_close_delegation(struct nfs4_delegation *dp) { @@ -201,7 +197,7 @@ nfs4_close_delegation(struct nfs4_delegation *dp) /* Called under the state lock. */ static void -release_delegation(struct nfs4_delegation *dp) +unhash_delegation(struct nfs4_delegation *dp) { list_del_init(&dp->dl_del_perfile); list_del_init(&dp->dl_del_perclnt); @@ -345,7 +341,7 @@ expire_client(struct nfs4_client *clp) while (!list_empty(&reaplist)) { dp = list_entry(reaplist.next, struct nfs4_delegation, dl_recall_lru); list_del_init(&dp->dl_recall_lru); - release_delegation(dp); + unhash_delegation(dp); } list_del(&clp->cl_idhash); list_del(&clp->cl_strhash); @@ -1859,7 +1855,7 @@ nfs4_laundromat(void) list_for_each_safe(pos, next, &reaplist) { dp = list_entry (pos, struct nfs4_delegation, dl_recall_lru); list_del_init(&dp->dl_recall_lru); - release_delegation(dp); + unhash_delegation(dp); } test_val = NFSD_LEASE_TIME; list_for_each_safe(pos, next, &close_lru) { @@ -2064,7 +2060,7 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl goto out; renew_client(dp->dl_client); if (flags & DELEG_RET) - release_delegation(dp); + unhash_delegation(dp); if (filpp) *filpp = dp->dl_vfs_file; } @@ -3239,7 +3235,7 @@ __nfs4_state_shutdown(void) list_for_each_safe(pos, next, &reaplist) { dp = list_entry (pos, struct nfs4_delegation, dl_recall_lru); list_del_init(&dp->dl_recall_lru); - release_delegation(dp); + unhash_delegation(dp); } release_all_files(); |