summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorHou Pengyang <houpengyang@huawei.com>2017-04-18 13:57:16 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2017-04-19 20:00:46 +0200
commit04485987f05388ffec04cdab7808ba26db30c9b8 (patch)
treec2303e587ea392ddbb4626c46e566b7eb661ecaf /fs/f2fs/file.c
parentf2fs: add undiscard blocks stat (diff)
downloadlinux-04485987f05388ffec04cdab7808ba26db30c9b8.tar.xz
linux-04485987f05388ffec04cdab7808ba26db30c9b8.zip
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/file.c')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 0ac833dd2634..0ccc8cf70e7a 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1898,7 +1898,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi,
int err;
/* if in-place-update policy is enabled, don't waste time here */
- if (need_inplace_update(inode))
+ if (need_inplace_update(inode, NULL))
return -EINVAL;
pg_start = range->start >> PAGE_SHIFT;