diff options
author | Chao Yu <chao2.yu@samsung.com> | 2016-02-24 10:17:55 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-02-26 20:52:02 +0100 |
commit | 406657dd1868a4d7b12be04ed769d9215ec9a7d1 (patch) | |
tree | 737fb58c96b15273c559cbf077fce80dd477f771 /fs/f2fs/checkpoint.c | |
parent | f2fs: introduce f2fs_update_data_blkaddr for cleanup (diff) | |
download | linux-406657dd1868a4d7b12be04ed769d9215ec9a7d1.tar.xz linux-406657dd1868a4d7b12be04ed769d9215ec9a7d1.zip |
f2fs: introduce f2fs_flush_merged_bios for cleanup
Add a new helper f2fs_flush_merged_bios to clean up redundant codes.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index b32ecc954229..4933b82feedd 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1141,9 +1141,7 @@ int write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops"); - f2fs_submit_merged_bio(sbi, DATA, WRITE); - f2fs_submit_merged_bio(sbi, NODE, WRITE); - f2fs_submit_merged_bio(sbi, META, WRITE); + f2fs_flush_merged_bios(sbi); /* * update checkpoint pack index |