]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
f2fs: lookup extent cache first under IPU scenario
authorHou Pengyang <houpengyang@huawei.com>
Tue, 25 Apr 2017 12:45:13 +0000 (12:45 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 3 May 2017 04:19:47 +0000 (21:19 -0700)
commite959c8f543e11dadf7f6923427fb3acb452a0de6
tree79ae2172c8d1d45231a6e3eea23aacf22be00a84
parent7eab0c0df8d1a8c460f7d660d3ffd06fd448e590
f2fs: lookup extent cache first under IPU scenario

If a page is cold, NOT atomit written and need_ipu now, there is
a high probability that IPU should be adapted. For IPU, we try to
check extent tree to get the block index first, instead of reading
the dnode page, where may lead to an useless dnode IO, since no need to
update the dnode index for IPU.

Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/gc.c
fs/f2fs/segment.c