summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2024-02-22 13:18:51 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2024-02-29 17:34:34 +0100
commit8b10d3653735e117bc1954ade80d75ad7b46b801 (patch)
tree1a10c5b7bfab11d04f5da5995e77f5c0a5fff218 /fs/f2fs/super.c
parentf2fs: compress: fix to check compress flag w/ .i_sem lock (diff)
downloadlinux-8b10d3653735e117bc1954ade80d75ad7b46b801.tar.xz
linux-8b10d3653735e117bc1954ade80d75ad7b46b801.zip
f2fs: introduce FAULT_NO_SEGMENT
Use it to simulate no free segment case during block allocation. Signed-off-by: Chao Yu <chao@kernel.org> 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 329f317e6f09..6190aace3d8c 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -63,6 +63,7 @@ const char *f2fs_fault_name[FAULT_MAX] = {
[FAULT_LOCK_OP] = "lock_op",
[FAULT_BLKADDR_VALIDITY] = "invalid blkaddr",
[FAULT_BLKADDR_CONSISTENCE] = "inconsistent blkaddr",
+ [FAULT_NO_SEGMENT] = "no free segment",
};
void f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned int rate,