diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-11-29 11:40:43 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-12-03 09:59:00 -0500 |
commit | 8ce54e0d82730ece61737c9fd7b61b28ab8c3390 (patch) | |
tree | 7a3cc8c0fea766d99cb93539ed3953b232767fc4 /fs/nfsd/state.h | |
parent | 269de30f10604710dde8d544748b5b6c748b7de8 (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/state.h')
-rw-r--r-- | fs/nfsd/state.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index b542bf2c0fe..423ac64ceb7 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h | |||
@@ -501,11 +501,13 @@ extern void nfsd4_record_grace_done(struct nfsd_net *nn, time_t boot_time); | |||
501 | #ifdef CONFIG_NFSD_FAULT_INJECTION | 501 | #ifdef CONFIG_NFSD_FAULT_INJECTION |
502 | int nfsd_fault_inject_init(void); | 502 | int nfsd_fault_inject_init(void); |
503 | void nfsd_fault_inject_cleanup(void); | 503 | void nfsd_fault_inject_cleanup(void); |
504 | void nfsd_forget_clients(u64); | 504 | u64 nfsd_for_n_state(u64, u64 (*)(struct nfs4_client *, u64)); |
505 | void nfsd_forget_locks(u64); | 505 | |
506 | void nfsd_forget_openowners(u64); | 506 | u64 nfsd_forget_client(struct nfs4_client *, u64); |
507 | void nfsd_forget_delegations(u64); | 507 | u64 nfsd_forget_client_locks(struct nfs4_client*, u64); |
508 | void nfsd_recall_delegations(u64); | 508 | u64 nfsd_forget_client_openowners(struct nfs4_client *, u64); |
509 | u64 nfsd_forget_client_delegations(struct nfs4_client *, u64); | ||
510 | u64 nfsd_recall_client_delegations(struct nfs4_client *, u64); | ||
509 | #else /* CONFIG_NFSD_FAULT_INJECTION */ | 511 | #else /* CONFIG_NFSD_FAULT_INJECTION */ |
510 | static inline int nfsd_fault_inject_init(void) { return 0; } | 512 | static inline int nfsd_fault_inject_init(void) { return 0; } |
511 | static inline void nfsd_fault_inject_cleanup(void) {} | 513 | static inline void nfsd_fault_inject_cleanup(void) {} |