summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-04-30 01:29:22 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2016-05-07 19:32:24 +0200
commitcb78942b821380913e6810375c9ce72858e64c4f (patch)
tree1106e5e49216f247f4c373192c71a382b9065fe0 /fs/f2fs/super.c
parentf2fs: inject page allocation failures (diff)
downloadlinux-cb78942b821380913e6810375c9ce72858e64c4f.tar.xz
linux-cb78942b821380913e6810375c9ce72858e64c4f.zip
f2fs: inject ENOSPC failures
This patch injects ENOSPC failures. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r--fs/f2fs/super.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 986d0da84e01..87654f48c55d 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -46,6 +46,10 @@ atomic_t f2fs_ops;
char *fault_name[FAULT_MAX] = {
[FAULT_KMALLOC] = "kmalloc",
[FAULT_PAGE_ALLOC] = "page alloc",
+ [FAULT_ALLOC_NID] = "alloc nid",
+ [FAULT_ORPHAN] = "orphan",
+ [FAULT_BLOCK] = "no more block",
+ [FAULT_DIR_DEPTH] = "too big dir depth",
};
#endif