OSDN Git Service

f2fs: allocate memory in batch in build_sit_info()
authorChao Yu <yuchao0@huawei.com>
Fri, 26 Jul 2019 07:41:20 +0000 (15:41 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 23 Aug 2019 14:57:15 +0000 (07:57 -0700)
commit2fde3dd14efe8ceb21a92c2749394a5df61cb7df
treed22d83998c35e9c879500af0a68261b256ccbc00
parent4507847c86bfc64e9bdce941a0f707560d3df98a
f2fs: allocate memory in batch in build_sit_info()

build_sit_info() allocate all bitmaps for each segment one by one,
it's quite low efficiency, this pach changes to allocate large
continuous memory at a time, and divide it and assign for each bitmaps
of segment. For large size image, it can expect improving its mount
speed.

Signed-off-by: Chen Gong <gongchen4@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c
fs/f2fs/segment.h