f2fs: introduce async IPU policy
This patch introduces an ASYNC IPU policy. Under senario of large # of async updating(e.g. log writing in Android), disk would be seriously fragmented, and higher frequent gc would be triggered. This patch uses IPU to rewrite the async update writting, since async is NOT sensitive to io latency. Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
This commit is contained in:

committed by
Jaegeuk Kim

parent
d84d1cbdec
commit
04485987f0
@@ -1356,7 +1356,7 @@ retry_encrypt:
|
||||
if (unlikely(fio->old_blkaddr != NEW_ADDR &&
|
||||
!is_cold_data(page) &&
|
||||
!IS_ATOMIC_WRITTEN_PAGE(page) &&
|
||||
need_inplace_update(inode))) {
|
||||
need_inplace_update(inode, fio))) {
|
||||
f2fs_unlock_op(F2FS_I_SB(inode));
|
||||
fio->cp_rwsem_locked = false;
|
||||
err = rewrite_data_page(fio);
|
||||
|
Reference in New Issue
Block a user