]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: initialize extent tree with on-disk extent info of inode
authorChao Yu <chao2.yu@samsung.com>
Thu, 19 Mar 2015 11:26:02 +0000 (19:26 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 10 Apr 2015 22:08:50 +0000 (15:08 -0700)
commitdf92cc8a65b67c2eb52e9746666213bdc8af9c14
tree657e0dd1fd94bd848faa03b1d39eebf775906c74
parent2d2183afafa1a44d072da85fb40af0589939623a
f2fs: initialize extent tree with on-disk extent info of inode

With normal extent info cache, we records largest extent mapping between logical
block and physical block into extent info, and we persist extent info in on-disk
inode.

When we enable extent tree cache, if extent info of on-disk inode is exist, and
the extent is not a small fragmented mapping extent. We'd better to load the
extent info into extent tree cache when inode is loaded. By this way we can have
more chance to hit extent tree cache rather than taking more time to read dnode
page for block address.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/inode.c