2 * Copyright (c) 2011 Bryan Schumaker <bjschuma@netapp.com>
4 * Function definitions for fault injection
7 #ifndef LINUX_NFSD_FAULT_INJECT_H
8 #define LINUX_NFSD_FAULT_INJECT_H
10 #ifdef CONFIG_NFSD_FAULT_INJECTION
11 int nfsd_fault_inject_init(void);
12 void nfsd_fault_inject_cleanup(void);
13 void nfsd_forget_clients(u64);
14 void nfsd_forget_locks(u64);
15 void nfsd_forget_openowners(u64);
16 void nfsd_forget_delegations(u64);
17 void nfsd_recall_delegations(u64);
18 #else /* CONFIG_NFSD_FAULT_INJECTION */
19 static inline int nfsd_fault_inject_init(void) { return 0; }
20 static inline void nfsd_fault_inject_cleanup(void) {}
21 static inline void nfsd_forget_clients(u64 num) {}
22 static inline void nfsd_forget_locks(u64 num) {}
23 static inline void nfsd_forget_openowners(u64 num) {}
24 static inline void nfsd_forget_delegations(u64 num) {}
25 static inline void nfsd_recall_delegations(u64 num) {}
26 #endif /* CONFIG_NFSD_FAULT_INJECTION */
28 #endif /* LINUX_NFSD_FAULT_INJECT_H */