From: Tiezhu Yang Date: Tue, 6 Feb 2018 00:21:45 +0000 (+0800) Subject: f2fs: remove redundant check of page type when submit bio X-Git-Tag: v4.19~1289^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bb09a0e7e807e2cb7a97e35d5075d0d82bd4085;p=platform%2Fkernel%2Flinux-rpi.git f2fs: remove redundant check of page type when submit bio This patch removes redundant check of page type when submit bio to make the logic more clear. Signed-off-by: Tiezhu Yang Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 0dae856..1c5b050 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -203,13 +203,12 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi, if (!is_read_io(bio_op(bio))) { unsigned int start; - if (f2fs_sb_mounted_blkzoned(sbi->sb) && - current->plug && (type == DATA || type == NODE)) - blk_finish_plug(current->plug); - if (type != DATA && type != NODE) goto submit_io; + if (f2fs_sb_mounted_blkzoned(sbi->sb) && current->plug) + blk_finish_plug(current->plug); + start = bio->bi_iter.bi_size >> F2FS_BLKSIZE_BITS; start %= F2FS_IO_SIZE(sbi);