Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.5 28 lines 955 B view raw
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 11int nfsd_fault_inject_init(void); 12void nfsd_fault_inject_cleanup(void); 13void nfsd_forget_clients(u64); 14void nfsd_forget_locks(u64); 15void nfsd_forget_openowners(u64); 16void nfsd_forget_delegations(u64); 17void nfsd_recall_delegations(u64); 18#else /* CONFIG_NFSD_FAULT_INJECTION */ 19static inline int nfsd_fault_inject_init(void) { return 0; } 20static inline void nfsd_fault_inject_cleanup(void) {} 21static inline void nfsd_forget_clients(u64 num) {} 22static inline void nfsd_forget_locks(u64 num) {} 23static inline void nfsd_forget_openowners(u64 num) {} 24static inline void nfsd_forget_delegations(u64 num) {} 25static inline void nfsd_recall_delegations(u64 num) {} 26#endif /* CONFIG_NFSD_FAULT_INJECTION */ 27 28#endif /* LINUX_NFSD_FAULT_INJECT_H */