From: Xianting Tian Date: Tue, 20 Oct 2020 08:22:01 +0000 (+0800) Subject: ext4: remove the null check of bio_vec page X-Git-Tag: v5.15~1977^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46bac5352929f75c1ec0c2395b06dcbc0fbaee69;p=platform%2Fkernel%2Flinux-starfive.git ext4: remove the null check of bio_vec page bv_page can't be NULL in a valid bio_vec, so we can remove the NULL check, as we did in other places when calling bio_for_each_segment_all() to go through all bio_vec of a bio. Reviewed-by: Jan Kara Signed-off-by: Xianting Tian Link: https://lore.kernel.org/r/20201020082201.34257-1-tian.xianting@h3c.com Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index defd2e1..cb135a9 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -111,9 +111,6 @@ static void ext4_finish_bio(struct bio *bio) unsigned under_io = 0; unsigned long flags; - if (!page) - continue; - if (fscrypt_is_bounce_page(page)) { bounce_page = page; page = fscrypt_pagecache_page(bounce_page);