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)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:04:14 +0000 (18:04 +0800)
commit8414a695c87d6f2109944c82ddd4d01204441cb1
tree5d77c5a5a760f095fd07cf3f8b644af7f0ffef8a
parent0041e69e25b0ce83f07fed9b21a0471db4705a94
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>

Conflicts:
fs/f2fs/recovery.c

Change-Id: I8953277ddf6b333a3fd1f112ebf4e6b26ab9a0b4
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/recovery.c
fs/f2fs/segment.h