diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-02-05 17:52:58 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-03-03 09:58:46 -0800 |
commit | 13054c548a1c9e78f8f8ba5f134909cb56152285 (patch) | |
tree | 657f4a0c7513ec78082df926bf22f58e704e2b10 /fs/f2fs/node.c | |
parent | 7e4dde79df7cdf8b40282857e030c7572ff04886 (diff) | |
download | lwn-13054c548a1c9e78f8f8ba5f134909cb56152285.tar.gz lwn-13054c548a1c9e78f8f8ba5f134909cb56152285.zip |
f2fs: introduce infra macro and data structure of rb-tree extent cache
Introduce infra macro and data structure for rb-tree based extent cache:
Macros:
* EXT_TREE_VEC_SIZE: indicate vector size for gang lookup in extent tree.
* F2FS_MIN_EXTENT_LEN: indicate minimum length of extent managed in cache.
* EXTENT_CACHE_SHRINK_NUMBER: indicate number of extent in cache will be shrunk.
Basic data structures for extent cache:
* struct extent_tree: extent tree entry per inode.
* struct extent_node: extent info node linked in extent tree.
Besides, adding new extent cache related fields in f2fs_sb_info.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
0 files changed, 0 insertions, 0 deletions