aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-08-19 23:13:47 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:33:58 +0200
commitd5e40a3f41de1104772eea0d9ad0c344c1de35bd (patch)
treeb597fd3df0b2d3a276a3529cb7197590a65fa525 /fs/f2fs/data.c
parent0a7d566562ddec5b582ec3b8c972651440eceb9f (diff)
f2fs: avoid unneeded loop in build_sit_entries
When building each sit entry in cache, firstly, we will load it from sit page, and then check all entries in sit journal, if there is one updated entry in journal, cover cached entry with the journaled one. Actually, most of check operation is unneeded since we only need to update cached entries with journaled entries in batch, so changing the flow as below for more efficient: 1. load all sit entries into cache from sit pages; 2. update sit entries with journal. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
0 files changed, 0 insertions, 0 deletions