Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp733933pxu; Fri, 23 Oct 2020 11:56:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu/degbvC39GcYkBgn0mQhEu3h4qDsFAXGlsmuQgeL7A2pK8qrJY1RNk5JPEQPVkZMNqr3 X-Received: by 2002:a17:906:eb48:: with SMTP id mc8mr3539656ejb.254.1603479371585; Fri, 23 Oct 2020 11:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603479371; cv=none; d=google.com; s=arc-20160816; b=u6mccRXKbUtk+PSEwF9vKesEhegeAQ3Qn+jivx0pAgC0mYixYq78Ij4o6Bx/NHpOsT W75PnS4TwY5rQoY2rU/AmxHwwsHZEviplv2pYcZtgANzrrXGpkwHr3zi+Yznrd/3LXf6 a/kscIZ/GHoYfWVabHpsUbHqY/SxcxzDTER5EZpD3wEMIue0S26tobKC+C2JAdsxIKkb 5WGAlUQ4UTfXM6O20ikzb3WAFE9ZceQMzR1M/XLGjFiqIqr8yKCGkMfs0HU0hnLD9Qwz PdBdE0w+grd99frhTj44JAQUY/qgs5Z6fX3Dhi4yllmyu2oZkxBqzTYgAT3UjW/1j+mC 5Y7A== 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=v+mpNVeis6seWMQqtL3A65EXkKNPxWJ8V/lOEli00WM=; b=g7V1UbIsf9cUlO09PzajsbXaW8f9ITvrCCkm7UhJL6bCi02B+mfAZREoBV+iVMIC3E Fy8jj3tpsXmLY95lMeuqzrJD7UvfwweC1PIK6VgfjzzwqephRgVccM3PZBdJS8/7enkr iQ3DHITi7lKDqP91SYgkj2U3LfSCstRu2d3e5jrfdlHGXWFp/jWr0iNVc0kT9bonQb1r QH2dzx/iGQCpRAC92/8YGlmtPph9G2MxSwh2ZmWHQ8P5XzBSwQlz4w0OQBHtR+zJzMA3 QhZEK8wjhwKQ7fE07LyE4ckf8xLIztalq1H4buY1yFCDeQBbe5GYEZ2bQP7l66WwI9Bn qzmQ== 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 cy27si1377602edb.419.2020.10.23.11.55.35; Fri, 23 Oct 2020 11:56:11 -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 S461892AbgJWQ4q (ORCPT + 99 others); Fri, 23 Oct 2020 12:56:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:60800 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S461853AbgJWQ4q (ORCPT ); Fri, 23 Oct 2020 12:56:46 -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 CB4E7AC82; Fri, 23 Oct 2020 16:56:44 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 8964D1E1348; Fri, 23 Oct 2020 18:56:44 +0200 (CEST) Date: Fri, 23 Oct 2020 18:56:44 +0200 From: Jan Kara To: Tianxianting Cc: Jan Kara , "tytso@mit.edu" , "adilger.kernel@dilger.ca" , "linux-ext4@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ext4: remove the null check of bio_vec page Message-ID: <20201023165644.GG9119@quack2.suse.cz> References: <20201020082201.34257-1-tian.xianting@h3c.com> <20201021102503.GC19726@quack2.suse.cz> <113ad7d2cbfd43a9972ad37df66e5542@h3c.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <113ad7d2cbfd43a9972ad37df66e5542@h3c.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri 23-10-20 16:38:16, Tianxianting wrote: > Thanks Jan > Can be the patch applied? Ted Tso is the ext4 maintainer so he should eventually pick up and apply the patch. But since there's merge window currently open, I guess he's busy shuffling patches to send to Linus. I'd expect he'll get to your patch in a week or two. Honza > > -----Original Message----- > From: Jan Kara [mailto:jack@suse.cz] > Sent: Wednesday, October 21, 2020 6:25 PM > To: tianxianting (RD) > 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 > > 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 -- Jan Kara SUSE Labs, CR