Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3895546pxu; Tue, 20 Oct 2020 03:26:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBiv9ziGsFRx+eUOt8c8RPYHve6qjPiM9L3ugcqpx0gvR53K4Eqx9bFF08vAG9LwtUGdMi X-Received: by 2002:a05:6402:c84:: with SMTP id cm4mr2030853edb.270.1603189559974; Tue, 20 Oct 2020 03:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603189559; cv=none; d=google.com; s=arc-20160816; b=Ush0wyVydYrNaMsWXkrdsK35d8ItN9Eg9mJ5vtu1tmdcTWOequgvk2A7fi4ShUX9OM py+YsmIQd5gZ+JgE3YETr8A8/VdPAnpzxD6Jv1OXHGFBeiYhUTgizMWYgGd2q1rKvBoD ezazDn41H/Yl5oVRtYwLSUIunU9JLq+Tbq5CaaoZKmn7ThSLK46b9l++yxx0nYqt6bLU 9xYQraPN8WclCWAi+VjFwtErumSOyww/j/9m8i7mJJwSDncrDCS5OQqluqyQPxkMfoX7 kFtfZNi1Mm6b8HMIw0K87fQJB1DksGc5Bbt87n9aOYgc7VKXyB+6YxY/cdV+SY07VqT0 CLHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=cxTgq3pJ+roUJvz30NEQ8EorfPG95K43aTi+r3b72oU=; b=0/bc4e0WZ5wQ9ozYik4CS/ZaE5yBqZqzXzRRu4fIGFW2JWXbMp/FeW3KP1mMFeCits j2NsePZk5Ztq/NQrYwK4UM97DubZ0DNPvuteOMv1+5K8QYFlP+SNVqxwBaR1h3qMsIHd yv1Xb1xXBT16Q8lAYb6hEhy90fk5jdmP/iL+FXo+pK/ASewURod75fPRwgoSPhYqeses UMvEBl8giBZEtxU5AVK8T+WuXAenGK+yL/lw+HOsauICvbAR3BNjMuPC/m5ghganz9jh Yic2BZs/cNXgsC9ax8DqI2GWG426HPosb4csDxifDYVDvDIVOS6HfBwa3OuddQE4yC/u FG2Q== 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 w17si769977edt.536.2020.10.20.03.25.27; Tue, 20 Oct 2020 03:25:59 -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 S2388911AbgJTIcw (ORCPT + 99 others); Tue, 20 Oct 2020 04:32:52 -0400 Received: from smtp.h3c.com ([60.191.123.56]:23469 "EHLO h3cspam01-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388905AbgJTIcw (ORCPT ); Tue, 20 Oct 2020 04:32:52 -0400 Received: from DAG2EX03-BASE.srv.huawei-3com.com ([10.8.0.66]) by h3cspam01-ex.h3c.com with ESMTPS id 09K8WBTY041663 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Oct 2020 16:32:11 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from localhost.localdomain (10.99.212.201) by DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 20 Oct 2020 16:32:14 +0800 From: Xianting Tian To: , , CC: , , Xianting Tian Subject: [PATCH] ext4: remove the null check of bio_vec page Date: Tue, 20 Oct 2020 16:22:01 +0800 Message-ID: <20201020082201.34257-1-tian.xianting@h3c.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.99.212.201] X-ClientProxiedBy: BJSMTP01-EX.srv.huawei-3com.com (10.63.20.132) To DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) X-DNSRBL: X-MAIL: h3cspam01-ex.h3c.com 09K8WBTY041663 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 --- 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