aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2011-07-26 19:09:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-26 19:49:46 -0400
commit7f5ddcc8d3eaccd5e169fda738530f937509645e (patch)
tree14f5581871040f98bbdab864314e1afc00a19a4c /mm
parent8307fc257cf3931d87e172bd8663e80c3d1e56a3 (diff)
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/failslab.c2
-rw-r--r--mm/page_alloc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mm/failslab.c b/mm/failslab.c
index c5f88f240ddc..7df9f7f0abf1 100644
--- a/mm/failslab.c
+++ b/mm/failslab.c
@@ -45,7 +45,7 @@ static int __init failslab_debugfs_init(void)
45 err = init_fault_attr_dentries(&failslab.attr, "failslab"); 45 err = init_fault_attr_dentries(&failslab.attr, "failslab");
46 if (err) 46 if (err)
47 return err; 47 return err;
48 dir = failslab.attr.dentries.dir; 48 dir = failslab.attr.dir;
49 49
50 failslab.ignore_gfp_wait_file = 50 failslab.ignore_gfp_wait_file =
51 debugfs_create_bool("ignore-gfp-wait", mode, dir, 51 debugfs_create_bool("ignore-gfp-wait", mode, dir,
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 094472377d81..72c6820a345c 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1424,7 +1424,7 @@ static int __init fail_page_alloc_debugfs(void)
1424 "fail_page_alloc"); 1424 "fail_page_alloc");
1425 if (err) 1425 if (err)
1426 return err; 1426 return err;
1427 dir = fail_page_alloc.attr.dentries.dir; 1427 dir = fail_page_alloc.attr.dir;
1428 1428
1429 fail_page_alloc.ignore_gfp_wait_file = 1429 fail_page_alloc.ignore_gfp_wait_file =
1430 debugfs_create_bool("ignore-gfp-wait", mode, dir, 1430 debugfs_create_bool("ignore-gfp-wait", mode, dir,