diff options
Diffstat (limited to 'mm/hwpoison-inject.c')
-rw-r--r-- | mm/hwpoison-inject.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c index c4dfd89f654a..c838735ac31d 100644 --- a/mm/hwpoison-inject.c +++ b/mm/hwpoison-inject.c | |||
@@ -112,6 +112,13 @@ static int pfn_inject_init(void) | |||
112 | if (!dentry) | 112 | if (!dentry) |
113 | goto fail; | 113 | goto fail; |
114 | 114 | ||
115 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP | ||
116 | dentry = debugfs_create_u64("corrupt-filter-memcg", 0600, | ||
117 | hwpoison_dir, &hwpoison_filter_memcg); | ||
118 | if (!dentry) | ||
119 | goto fail; | ||
120 | #endif | ||
121 | |||
115 | return 0; | 122 | return 0; |
116 | fail: | 123 | fail: |
117 | pfn_inject_exit(); | 124 | pfn_inject_exit(); |