Bryan Schumaker | 65178db | 2011-11-01 13:35:21 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 Bryan Schumaker <bjschuma@netapp.com> |
| 3 | * |
| 4 | * Function definitions for fault injection |
| 5 | */ |
| 6 | |
| 7 | #ifndef LINUX_NFSD_FAULT_INJECT_H |
| 8 | #define LINUX_NFSD_FAULT_INJECT_H |
| 9 | |
| 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 */ |
| 27 | |
| 28 | #endif /* LINUX_NFSD_FAULT_INJECT_H */ |