Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp801976lqt; Tue, 19 Mar 2024 04:33:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWv674+IgsPFt9wqJo0xhPnM9/S0djUGt/KHfGYFsbhev5LCFiRx4wmc81Q7DdbwH6AUOu2EqMaVKMp1GtKkqAjQ4BIxpTklQpMaf6OdA== X-Google-Smtp-Source: AGHT+IHSxrRLtXOUQq3mJ/mTGeRQYjavivMq1FQFke9krTTjmO/6JtMnLA+qZnI/piODnMay0won X-Received: by 2002:a05:6a20:7da4:b0:1a3:63ca:632a with SMTP id v36-20020a056a207da400b001a363ca632amr6160543pzj.58.1710848003825; Tue, 19 Mar 2024 04:33:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710848003; cv=pass; d=google.com; s=arc-20160816; b=0nSyGuLdf7sJN6yDpVK2nl4Bbz0cIsZVQprsv9pz/2/Rm7OK8p1/Ez2Mbz+QfqjILo rp0g1ZlRs+5312X0p3DeJIUtftamYX9zKvFSqnMTxuICuXDrN53vCVnWEk1sQQ/Evh7w fouJ2+tqqmIYHmqCylsj/hfzh7DIzpPxNyov6cRkyUGFhhTV/GGZYG2pDZpKGtWQljM4 Z5ISMq9hg0pqyn99rzb/wFh0jxxjW9fpIYnU7BbZ+OFHUzRmRWfirwPseM/VR9Y3Ftld USDi9LeZWKM8Zj7XStgZNofhtOE5Grm/DcPYGCkMw0rlrl0KRb72EvAZmi6bviMjRxsw 6czw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=r+qFOZNyNSDTbyvWedz25jxmc6QpgX1ExFvyBMiu7fo=; fh=4vN4thPQ5z49h0k3wc47Ze2ZGwmxH293ZHjdupTAu0I=; b=qj3opj8dp7UIWmSAdJiVqp6/9EouTQuv852RMbgGAnMCDtk/sHQUMJcyb9+NPICCHq Xv9KCBt8qSIWlOp2V3ZOkuhP1C7EkdmtAAODpjbuVtkMReZ9MR1M8WdLrQXCVEF0eXKG V97jzgZ9o9uB7WXjNrHlzQmVAUC/hTe1qygs87iBNTV52teF4zVWlBM0vuWOTHu1Avua 4H7iBMQglGgtO4dPNeiAx4qbZEzdFd4LXjdOJs1eMECRKpHAiv9ehjK1ROGvKFIxl578 O61pRSK/tPk8sfP5G7N+/u3DFSE+h6Rq/eHzgpFZHZsECCwNJZ+SGVhtBWrsbAj2B8iO nfTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-ext4+bounces-1691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s71-20020a63774a000000b005d8b6a84416si9992687pgc.534.2024.03.19.04.33.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 04:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-ext4+bounces-1691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 935D528462C for ; Tue, 19 Mar 2024 11:33:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB7E07FBA6; Tue, 19 Mar 2024 11:32:18 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 696BF7F485; Tue, 19 Mar 2024 11:32:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710847938; cv=none; b=NbQ7ommskNzsE1yyrqg9l2yONygjobMY5Fr5WvLb/yS+jqqtvv7p6Ww/SpSqtYhXq7Sq01Y5GAdwMSy0Xmo88zt5FCGHCEx8N9G2PXhPp80HZEvGdZvhrQGHtCk+67yR9KEHqADo30Oi/xS/oYc9yQ937wDjSOvtyHnvyi586Q4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710847938; c=relaxed/simple; bh=0n5+Sdvy+OTRXKi5f3l2hiJnqHHcszu9qyw8Fm2oqrI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SoFj8rZWwoTlokHpHMOXmSpCb2OA4NarakcSXPDlEFTN5iA71t+vviLHylQyUXhueUZ0qcCRVoirTmE3L4gr44luUtj/7svT9Ufq1e4TK947uRpVdpKWxG4B9lnBmNfr/zSGWDGqthMzvy9svviPKpPNa8H8ieZEzVHp7rv84as= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4TzTyt0zF6z1h2l9; Tue, 19 Mar 2024 19:29:42 +0800 (CST) Received: from dggpeml500021.china.huawei.com (unknown [7.185.36.21]) by mail.maildlp.com (Postfix) with ESMTPS id 81118180060; Tue, 19 Mar 2024 19:32:14 +0800 (CST) Received: from huawei.com (10.175.127.227) by dggpeml500021.china.huawei.com (7.185.36.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 19 Mar 2024 19:32:13 +0800 From: Baokun Li To: CC: , , , , , , , , , Subject: [PATCH v4 9/9] ext4: clean up s_mb_rb_lock to fix build warnings with C=1 Date: Tue, 19 Mar 2024 19:33:25 +0800 Message-ID: <20240319113325.3110393-10-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240319113325.3110393-1-libaokun1@huawei.com> References: <20240319113325.3110393-1-libaokun1@huawei.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500021.china.huawei.com (7.185.36.21) Running sparse (make C=1) on mballoc.c we get the following warning: fs/ext4/mballoc.c:3194:13: warning: context imbalance in 'ext4_mb_seq_structs_summary_start' - wrong count at exit This is because __acquires(&EXT4_SB(sb)->s_mb_rb_lock) was called in ext4_mb_seq_structs_summary_start(), but s_mb_rb_lock was removed in commit 83e80a6e3543 ("ext4: use buckets for cr 1 block scan instead of rbtree"), so remove the __acquires to silence the warning. Signed-off-by: Baokun Li Reviewed-by: Jan Kara --- fs/ext4/mballoc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index dbf04f91516c..c65fac9b8c72 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -3190,7 +3190,6 @@ int ext4_seq_mb_stats_show(struct seq_file *seq, void *offset) } static void *ext4_mb_seq_structs_summary_start(struct seq_file *seq, loff_t *pos) -__acquires(&EXT4_SB(sb)->s_mb_rb_lock) { struct super_block *sb = pde_data(file_inode(seq->file)); unsigned long position; -- 2.31.1