aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-11-29 11:40:43 -0500
committerJ. Bruce Fields <bfields@redhat.com>2012-12-03 09:59:00 -0500
commit8ce54e0d82730ece61737c9fd7b61b28ab8c3390 (patch)
tree7a3cc8c0fea766d99cb93539ed3953b232767fc4 /fs/nfsd/nfs4state.c
parent269de30f10604710dde8d544748b5b6c748b7de8 (diff)
NFSD: Fault injection operations take a per-client forget function
The eventual goal is to forget state based on ip address, so it makes sense to call this function in a for-each-client loop until the correct amount of state is forgotten. I also use this patch as an opportunity to rename the forget function from "func()" to "forget()". Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index dc7c22f14fe..ab45cdd7b3d 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4721,36 +4721,6 @@ u64 nfsd_for_n_state(u64 max, u64 (*func)(struct nfs4_client *, u64))
4721 return count; 4721 return count;
4722} 4722}
4723 4723
4724void nfsd_forget_clients(u64 num)
4725{
4726 u64 count = nfsd_for_n_state(num, nfsd_forget_client);
4727 printk(KERN_INFO "NFSD: Forgot %llu clients", count);
4728}
4729
4730void nfsd_forget_locks(u64 num)
4731{
4732 u64 count = nfsd_for_n_state(num, nfsd_forget_client_locks);
4733 printk(KERN_INFO "NFSD: Forgot %llu locks", count);
4734}
4735
4736void nfsd_forget_openowners(u64 num)
4737{
4738 u64 count = nfsd_for_n_state(num, nfsd_forget_client_openowners);
4739 printk(KERN_INFO "NFSD: Forgot %llu open owners", count);
4740}
4741
4742void nfsd_forget_delegations(u64 num)
4743{
4744 u64 count = nfsd_for_n_state(num, nfsd_forget_client_delegations);
4745 printk(KERN_INFO "NFSD: Forgot %llu delegations", count);
4746}
4747
4748void nfsd_recall_delegations(u64 num)
4749{
4750 u64 count = nfsd_for_n_state(num, nfsd_recall_client_delegations);
4751 printk(KERN_INFO "NFSD: Recalled %llu delegations", count);
4752}
4753
4754#endif /* CONFIG_NFSD_FAULT_INJECTION */ 4724#endif /* CONFIG_NFSD_FAULT_INJECTION */
4755 4725
4756/* initialization to perform at module load time: */ 4726/* initialization to perform at module load time: */