aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorHou Pengyang <houpengyang@huawei.com>2017-04-18 11:57:16 +0000
committerMoyster <oysterized@gmail.com>2017-05-21 18:42:18 +0200
commit7d987c49a8e8050154286beda2f27b3afeedb2c2 (patch)
treeb1e1a1bc31d3a969ce122a6e80c8526ba2a14a63 /fs/f2fs/data.c
parent0d800e3b032e86df0f495e0eed39d8238f4ba962 (diff)
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>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 6521b780f..597dfc168 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1352,7 +1352,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);