Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4828503pxu; Wed, 21 Oct 2020 06:27:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK4hjMI+nbV/v1ymc65Em7tH4Y1wlMJWMFSpLfFAtiDOvNBLnq/7bf8jPKSXVV2P4BtuNi X-Received: by 2002:aa7:c302:: with SMTP id l2mr3146819edq.204.1603286840286; Wed, 21 Oct 2020 06:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603286840; cv=none; d=google.com; s=arc-20160816; b=xx5d4PBHa9Gxc1L9i/Hvc0kQBli3/WGB2R9CwHYbumrPDBAjYrnNdBcoJYbd151IG8 iJ01VjkPQaQUrj0ho2Quz/zk1gQvtO3sOOSs8DpLerTy1XJkwajCbfgucgtxmuo/4tpI pjCIvVH3K23kktBCJOqZTjAqzz2R+kZJ/Cf2PL50/SfjXap8t1KZ0BI1T3OLAG6TuMwj tm1cdHI/BUumEXnxsrZerpjDAQ4ElVTwblKKSos3c9Qwl0JGhXibt48S8AnOJi7zpMB2 Hk08BTGYLu0mxO56tjbsROzTQoHiT7g8x4+Tql/lmXXWEPnT+PNH6oWd6usmKLnrwHsq gCuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IM+Ysbk9BgXT3yffRxb5J7OMaahj1kjyi5jcBsHlG0U=; b=apDFWUuobN8RakXF/HiTRwVFFHBB4p3YNEKML4o2uIbO5TO7USHY0/HcrUca3MvUUH UcKkZdLjzs0k3SzdmvSMcjk+DGXP+/LfpObpl2X2IcLCih12E3oIV3l0y1DrgbYrHVTn 4ZAT01X25gvQw/hR8QUy8O6RMa5dSou0qI3/dGjVJXU5e9wBJmeYDwIC1+IqCIs1h5FF Mxm/0qht0Bw6ZLsr4qApAVlZ9mj/+7BsHy3QqxV2OGs9C/FvAkcHRZ+yuM15a9kUNaK8 mqgUjZ+DHdiHD5Fn2Z0YZHp2FOMi1GBms2QQPfZwCKVeLaMUHr9Q01iEUAuKlNKHACic yXGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si1481441edn.187.2020.10.21.06.26.55; Wed, 21 Oct 2020 06:27:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441679AbgJUKZG (ORCPT + 99 others); Wed, 21 Oct 2020 06:25:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:33788 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441675AbgJUKZG (ORCPT ); Wed, 21 Oct 2020 06:25:06 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 25446ACE5; Wed, 21 Oct 2020 10:25:05 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 5A5521E0E97; Wed, 21 Oct 2020 12:25:03 +0200 (CEST) Date: Wed, 21 Oct 2020 12:25:03 +0200 From: Jan Kara To: Xianting Tian Cc: tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ext4: remove the null check of bio_vec page Message-ID: <20201021102503.GC19726@quack2.suse.cz> References: <20201020082201.34257-1-tian.xianting@h3c.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020082201.34257-1-tian.xianting@h3c.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue 20-10-20 16:22:01, Xianting Tian wrote: > 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. > > Signed-off-by: Xianting Tian Thanks for the patch. It looks good to me. You can add: Reviewed-by: Jan Kara Honza > --- > fs/ext4/page-io.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c > index defd2e10d..cb135a944 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); > -- > 2.17.1 > -- Jan Kara SUSE Labs, CR