diff options
author | Chao Yu <yuchao0@huawei.com> | 2021-05-20 13:51:50 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-06-23 10:09:35 +0200 |
commit | 6ce19aff0b8cd386860855185c6cd79337fc4d2b (patch) | |
tree | 437802d6394317335ddcf02d21ff95425d97a200 /include | |
parent | f2fs: clean up /sys/fs/f2fs/<disk>/features (diff) | |
download | linux-6ce19aff0b8cd386860855185c6cd79337fc4d2b.tar.xz linux-6ce19aff0b8cd386860855185c6cd79337fc4d2b.zip |
f2fs: compress: add compress_inode to cache compressed blocks
Support to use address space of inner inode to cache compressed block,
in order to improve cache hit ratio of random read.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/f2fs_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h index f93000c3a127..d445150c5350 100644 --- a/include/linux/f2fs_fs.h +++ b/include/linux/f2fs_fs.h @@ -34,6 +34,7 @@ #define F2FS_ROOT_INO(sbi) ((sbi)->root_ino_num) #define F2FS_NODE_INO(sbi) ((sbi)->node_ino_num) #define F2FS_META_INO(sbi) ((sbi)->meta_ino_num) +#define F2FS_COMPRESS_INO(sbi) (NM_I(sbi)->max_nid) #define F2FS_MAX_QUOTAS 3 |