summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2020-12-03 09:52:45 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2020-12-07 08:41:25 -0800
commit10208567f11bd572331cbbcb9a89c61a143811a1 (patch)
tree5dcbe4ab3295300d06b1bae47b31ebb40e5d5c20 /fs/f2fs/f2fs.h
parentec2ddf499402a665d1f6f7f5ce1391100e54089e (diff)
downloadlinux-stable-10208567f11bd572331cbbcb9a89c61a143811a1.tar.gz
linux-stable-10208567f11bd572331cbbcb9a89c61a143811a1.tar.bz2
linux-stable-10208567f11bd572331cbbcb9a89c61a143811a1.zip
f2fs: introduce max_io_bytes, a sysfs entry, to limit bio size
This patch adds max_io_bytes to limit bio size when f2fs tries to merge consecutive IOs. This can give a testing point to split out bios and check end_io handles those bios correctly. This is used to capture a recent bug on the decompression and fsverity flow. Reviewed-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 36090cd09011..594df6391390 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -1446,6 +1446,7 @@ struct f2fs_sb_info {
loff_t max_file_blocks; /* max block index of file */
int dir_level; /* directory level */
int readdir_ra; /* readahead inode in readdir */
+ u64 max_io_bytes; /* max io bytes to merge IOs */
block_t user_block_count; /* # of user blocks */
block_t total_valid_block_count; /* # of valid blocks */