summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-11-30 12:28:18 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2018-01-03 04:27:29 +0100
commit628b3d1438fbcb1f9e79472a0872a2c3018a48be (patch)
treee75a111c4eea20a4804c97332eb660d87ad1b390 /fs/f2fs/super.c
parentf2fs: inject fault to kzalloc (diff)
downloadlinux-628b3d1438fbcb1f9e79472a0872a2c3018a48be.tar.xz
linux-628b3d1438fbcb1f9e79472a0872a2c3018a48be.zip
f2fs: inject fault to kvmalloc
This patch supports to inject fault into kvmalloc/kvzalloc. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 7ef7620b2010..20935d10d8f1 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -43,6 +43,7 @@ static struct kmem_cache *f2fs_inode_cachep;
char *fault_name[FAULT_MAX] = {
[FAULT_KMALLOC] = "kmalloc",
+ [FAULT_KVMALLOC] = "kvmalloc",
[FAULT_PAGE_ALLOC] = "page alloc",
[FAULT_PAGE_GET] = "page get",
[FAULT_ALLOC_BIO] = "alloc bio",