]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: use meta_inode cache to improve roll-forward speed
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 11 Sep 2014 20:49:55 +0000 (13:49 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Sep 2014 18:10:12 +0000 (11:10 -0700)
commit547265bf5c435919299b38c3d02c83c145e83091
treecb88bac09865787eb17fb7e98854e25906729717
parentb8ae50b819765ab504fde8b4db47ea7247513e64
f2fs: use meta_inode cache to improve roll-forward speed

Previously, all the dnode pages should be read during the roll-forward recovery.
Even worsely, whole the chain was traversed twice.
This patch removes that redundant and costly read operations by using page cache
of meta_inode and readahead function as well.

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