diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-03-10 00:24:24 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-03-22 03:34:26 +0100 |
commit | 14b44d238ce7402a99db30b806e08b3e4eddcdbe (patch) | |
tree | 36f35e8f60ef21a8452ae6163099c2b3108747b5 /fs/f2fs/f2fs.h | |
parent | f2fs: check range before defragment (diff) | |
download | linux-14b44d238ce7402a99db30b806e08b3e4eddcdbe.tar.xz linux-14b44d238ce7402a99db30b806e08b3e4eddcdbe.zip |
f2fs: add fault injection on f2fs_truncate
Inject a fault during f2fs_truncate().
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index b549b531e586..7c9685c4c904 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -50,6 +50,7 @@ enum { FAULT_BLOCK, FAULT_DIR_DEPTH, FAULT_EVICT_INODE, + FAULT_TRUNCATE, FAULT_IO, FAULT_CHECKPOINT, FAULT_MAX, |