mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00:00
fault-injection: use debugfs_remove_recursive
Use debugfs_remove_recursive() to simplify initialization and deinitialization of fault injection debugfs files. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8307fc257c
commit
7f5ddcc8d3
4 changed files with 31 additions and 108 deletions
|
@ -27,23 +27,7 @@ struct fault_attr {
|
|||
unsigned long count;
|
||||
|
||||
#ifdef CONFIG_FAULT_INJECTION_DEBUG_FS
|
||||
|
||||
struct {
|
||||
struct dentry *dir;
|
||||
|
||||
struct dentry *probability_file;
|
||||
struct dentry *interval_file;
|
||||
struct dentry *times_file;
|
||||
struct dentry *space_file;
|
||||
struct dentry *verbose_file;
|
||||
struct dentry *task_filter_file;
|
||||
struct dentry *stacktrace_depth_file;
|
||||
struct dentry *require_start_file;
|
||||
struct dentry *require_end_file;
|
||||
struct dentry *reject_start_file;
|
||||
struct dentry *reject_end_file;
|
||||
} dentries;
|
||||
|
||||
struct dentry *dir;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue