Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp621852ybz; Wed, 15 Apr 2020 15:19:00 -0700 (PDT) X-Google-Smtp-Source: APiQypIfvgtLTBSTZWfDwq4vayfQe11+OY4NYi7+67IjxFcBgndn15fuFBuRcm8mwsMngqJxNbDg X-Received: by 2002:a17:906:fc3:: with SMTP id c3mr7216505ejk.28.1586989140825; Wed, 15 Apr 2020 15:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586989140; cv=none; d=google.com; s=arc-20160816; b=cY82TSv8JOq80j7ZcZMbtdOOqelYSsf1I1EgKvchInl3/FN10J7xA6oHIbKgVYUinV 1AOY3gciCv23JgcngnAHBpM49Abc9d5H2PwLIke7e9X8IOzAt+lQ+JaTQNOiAPFNc61j lJ+aiOhsHSl21sFuOB792iMHIkgSOGNq37Ziz22fOqVKM4VvZ2x8362M30/svU0D+mtq w724SzDu9IIUHcOQx+NWtU5DOf1mzs3VpsX7sR2xMpdskGSE0SkAi0P4m/m0qFrSgn82 OS+0Bu1/l3mkJ+SlrDhBO0jDD1ncQSUc75U6DpXz0bmkQC4cuCYxxmSbmjAq7WWoM0ra QhHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=5VgHU7jtRnhCC/czrFAYAewDkeV5MzN6GhhBv63cG/c=; b=vgeQeGo13TfSlbRwt1pH0GSvKTCuSe2EaBm9Vr4FyqK0Sb8xw8dYSRIKD0ErmKyiAn X3XkLnpgmTsAGwOB/AJfoFJiHuKQe1ZwLYw9OLz4nWhTXyNseUurP0W1na46cDtgo4Gm aIvyax1OLmuUeHzDnCQKwodqiYrPfuokOrC9UevkLv+R2DIVZ/lhp1fMEpSfMG2RbKSG y4eqeqgW3jF1vUcyVTAhvRc2zMbh+GSnjY/qM6iIOCCztxNzYXud+Am4ANDww3i09ViV OFy77CgXJ5hdvYOFrFJJWy+MN87N9qH165JF2FPHtIK5tnc3klLYoXRqJAyxHV1rvVKn p4UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="CgPS/t7c"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g23si11345523ejh.437.2020.04.15.15.18.36; Wed, 15 Apr 2020 15:19:00 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="CgPS/t7c"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393664AbgDOH0O (ORCPT + 99 others); Wed, 15 Apr 2020 03:26:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390602AbgDOHZv (ORCPT ); Wed, 15 Apr 2020 03:25:51 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63E2DC061A0C for ; Wed, 15 Apr 2020 00:25:51 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id mn19so6326014pjb.0 for ; Wed, 15 Apr 2020 00:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5VgHU7jtRnhCC/czrFAYAewDkeV5MzN6GhhBv63cG/c=; b=CgPS/t7cuYLdbg7UMOEmKH9uGaZw0wvGVzb58LqZA9kHirfOaiNp0wrdomDyYFWrm8 HNGnGgFgDse4X0tf82uO00Nnep8TEfiqpQuPGp+uaGmwrX5WJi9HewvQFan++QU9HP9h Cj8CM4Yc1GtvATKJC5Mrkbo4WiP+MsW9NnkqwafxZIW5CaG7fv6RoFl56pozvR+nvi6m aqAs5ObobTxa4gNCutwKryNp7WHudQUQevb6S4Y8YmGTPbKMzhmiH6R7vmGgIFIok72R xMkv5tMztk5wK9VDvB9gIi1Z7uJzFUJEmSrGq+YgXWD8xioPNdcVcd8Fkj+F826h+KFP 671w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5VgHU7jtRnhCC/czrFAYAewDkeV5MzN6GhhBv63cG/c=; b=cfLZ/bvBfvCeFb//vQwZtIKu/kvxg8Ja2o+zQAgp8Pq9eZcMu5dnB9hrTSMZiDYYBu CNuouWKLC5OZgJiuPzDtSWkpYnVDpARegEJNYJvfO01jha75znAfcJAM6sjReoIf8+Kt ++LK7tfQH3NuOQ7vTJc/QFBN2r8lgxFU/o48KfkjfVLfM8hTcWZ6UYjPoLEP4ct1/Hg6 dZFx4BZ4rbIoHvCxwRm/ED3lhiDpcSAWK3/i1NjCM6bssHKlcvr9qIGBIUSf+5qSwYcL x5Vc12RAHOjg7jhRrmGsLAjc+ntG6y9xtVKqnzK9IVElsR6kRMqqjj0c3FF8v5lLyE2N cYOw== X-Gm-Message-State: AGi0PuZoiS8nvs+MdaaUvEUfXHsiEqLI1yjoiXYTgxQJGi72xVfkNQdD RCNyz2FfbTUULMywbSAr7o71HdU= X-Received: by 2002:a17:902:a40f:: with SMTP id p15mr3847702plq.154.1586935550469; Wed, 15 Apr 2020 00:25:50 -0700 (PDT) Received: from he-cluster.localdomain ([67.216.221.250]) by smtp.gmail.com with ESMTPSA id e16sm205815pgg.1.2020.04.15.00.25.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2020 00:25:50 -0700 (PDT) From: xiakaixu1987@gmail.com X-Google-Original-From: kaixuxia@tencent.com To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, adilger.kernel@dilger.ca, Kaixu Xia Subject: [PATCH] ext4: remove redundant variable has_bigalloc in ext4_fill_super Date: Wed, 15 Apr 2020 15:25:42 +0800 Message-Id: <1586935542-29588-1-git-send-email-kaixuxia@tencent.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Kaixu Xia We can use the ext4_has_feature_bigalloc() function directly to check bigalloc feature and the variable has_bigalloc is reduncant, so remove it. Signed-off-by: Kaixu Xia --- fs/ext4/super.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 855874ea4b29..60bb3991304e 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3681,7 +3681,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) int blocksize, clustersize; unsigned int db_count; unsigned int i; - int needs_recovery, has_huge_files, has_bigalloc; + int needs_recovery, has_huge_files; __u64 blocks_count; int err = 0; unsigned int journal_ioprio = DEFAULT_JOURNAL_IOPRIO; @@ -4196,8 +4196,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) /* Handle clustersize */ clustersize = BLOCK_SIZE << le32_to_cpu(es->s_log_cluster_size); - has_bigalloc = ext4_has_feature_bigalloc(sb); - if (has_bigalloc) { + if (ext4_has_feature_bigalloc(sb)) { if (clustersize < blocksize) { ext4_msg(sb, KERN_ERR, "cluster size (%d) smaller than " -- 2.20.0