summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-02-01 16:51:22 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-23 10:10:48 -0800
commit942fd3192f83cef54bc0d485937fd5382ac5acd0 (patch)
tree12635c6163266d68c7555a98dd45f8ad5fc2b868 /fs/f2fs/checkpoint.c
parentd68f735b3bc934a7523a047aa952a577cf6ca171 (diff)
downloadlinux-stable-942fd3192f83cef54bc0d485937fd5382ac5acd0.tar.gz
linux-stable-942fd3192f83cef54bc0d485937fd5382ac5acd0.tar.bz2
linux-stable-942fd3192f83cef54bc0d485937fd5382ac5acd0.zip
f2fs: check last page index in cached bio to decide submission
If the cached bio has the last page's index, then we need to submit it. Otherwise, we don't need to submit it and can wait for further IO merges. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index fb8cdfcaece6..e6e42a4b1344 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -249,7 +249,8 @@ static int f2fs_write_meta_page(struct page *page,
dec_page_count(sbi, F2FS_DIRTY_META);
if (wbc->for_reclaim)
- f2fs_submit_merged_bio_cond(sbi, NULL, page, 0, META, WRITE);
+ f2fs_submit_merged_bio_cond(sbi, page->mapping->host,
+ 0, page->index, META, WRITE);
unlock_page(page);