mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
7eab0c0df8
commit
e959c8f543
3 changed files with 16 additions and 2 deletions
|
@ -311,6 +311,7 @@ static int __commit_inmem_pages(struct inode *inode,
|
|||
}
|
||||
|
||||
fio.page = page;
|
||||
fio.old_blkaddr = NULL_ADDR;
|
||||
err = do_write_data_page(&fio);
|
||||
if (err) {
|
||||
unlock_page(page);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue