]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/f2fs/checkpoint.c
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)
commit4c521f493b625c7982cf2eae246e86c893f62dfa
treecb88bac09865787eb17fb7e98854e25906729717
parent60979115a69e0e7916a1c1796f902264f1350977
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