]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: avoid to ra unneeded blocks in recover flow
authorChao Yu <chao2.yu@samsung.com>
Mon, 8 Dec 2014 07:02:52 +0000 (15:02 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 8 Dec 2014 22:19:09 +0000 (14:19 -0800)
commit635aee1fefef921ae4124b127fced62ea6008839
tree92559fbad6271bbb0db0c7047b0e6bb370a9f1bc
parent66b00c186764e29765e8962a03556c329dee48e5
f2fs: avoid to ra unneeded blocks in recover flow

To improve recovery speed, f2fs try to readahead many contiguous blocks in warm
node segment, but for most time, abnormal power-off do not occur frequently, so
when mount a normal power-off f2fs image, by contrary ra so many blocks and then
invalid them will hurt the performance of mount.
It's better to just ra the first next-block for normal condition.

Signed-off-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