]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: read contiguous sit entry pages by merging for mount performance
authorChao Yu <chao2.yu@samsung.com>
Fri, 22 Nov 2013 01:09:59 +0000 (09:09 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:02 +0000 (10:18 +0900)
commitb977b107c12550d85684dcb2631aac120c9830db
treef7afcd5d6ac031268442cb0b5d21a003ebcd10ee
parent5a554a5a5f8c963bb52df5c261d1776f36406df0
f2fs: read contiguous sit entry pages by merging for mount performance

Previously we read sit entries page one by one, this method lost the chance
of reading contiguous page together. So we read pages as contiguous as
possible for better mount performance.

change log:
 o merge judgements/use 'Continue' or 'Break' instead of 'Goto' as Gu Zheng
   suggested.
 o add mark_page_accessed() before release page to delay VM reclaiming.
 o remove '*order' for simplification of function as Jaegeuk Kim suggested.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
[Jaegeuk Kim: fix a bug on the block address calculation]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/segment.c
fs/f2fs/segment.h