Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp124215lqb; Thu, 14 Mar 2024 07:10:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjJLakUj04jriSknQ4Qzi3ZQSoQwDFXr2OPHz1qQCWei0oW/3UKmaKxI5jhxNYiGFhWzPDEF6mxV9BfrVTKe6iAAGmmrCcdUiSLjFmRg== X-Google-Smtp-Source: AGHT+IEHn2L31H58mbjW9eM8QULzaV4JsZyDCm2o12uH0O0nB5s4GQOw7yM708v5qL4XI0tEPtgb X-Received: by 2002:a17:906:99d3:b0:a46:749b:58a with SMTP id s19-20020a17090699d300b00a46749b058amr1281520ejn.57.1710425404513; Thu, 14 Mar 2024 07:10:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710425404; cv=pass; d=google.com; s=arc-20160816; b=RbKdix5hGVQZE9vvTP+ap7GO4PUwuXPbOAWR70/U4x4q1OqF2XVKbPhEkJbV5yQ1Mr Kim123SovgrNBCtpnlL3gN01RAQJBoPduIQIL0rJ02GWR61TwlqHInns7UTkGBZLYuEO 7kndTKGbzvWyUaSFwe7YQAPRGFCC1e47mAzLB8g8dbbmxOADr5JVp83QcMaL2uOLPshi /Gd1O26zFzmwJGU2e3ty5K/bVHa0UQJ7spNmfnLUsB0fJBOJA0OD84QuKVUB59RapN2v QgvgmL8TJKH3Y3M6G1VdC7PHdSf8uL4s7Alrzd7rru92C1ZtX7BVPzjEVipIO74bAnxW v0KQ== 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=AsjbmetugoeA/gvv6O+DkFiEiCWmzEScf9xUjCPt7Do=; fh=4vN4thPQ5z49h0k3wc47Ze2ZGwmxH293ZHjdupTAu0I=; b=tia8KkgpcmP0HzmRmEpE61gAzB8Bl2UxQbmBj3s68jimkKJySghUCnS6yB8ep9RhBb xg9xCfaEnL6zUsh3i6XXrHFtZTK9LMmE1em+2O1hql4dFevdWuylQWoWiyeKPHbEj6mf OaYVjkokVDEDGLAjm7JkTCBNO93nH9ssWouKRoAHMGfjuNp6MG5HOzYPFfN+SUHqh09l FSUv76p6TqwrZDYvbqUbfyqoyehkw+A6qcx3rvLPjNyMxvoWg86BzMLzgKSBI9BJfv/A HXwTyKj7gha/Ej+LP/QkfBCBakL8kFIuERCWMGeY7wt0BLf4zjc0020EBkHt3JIKowjC NV3A==; 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-1646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f22-20020a170906495600b00a44b8f84062si704495ejt.766.2024.03.14.07.10.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 07:10:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-1646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1646-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 394391F21E80 for ; Thu, 14 Mar 2024 14:10:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8315873516; Thu, 14 Mar 2024 14:07:59 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (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 6B59971B43; Thu, 14 Mar 2024 14:07:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710425279; cv=none; b=fws0i2xgLc8UDQ7c7PIZaF7eMVWksJH2qbqI6hseTBOgYO68ss6fU4vFsH3ePLyvJ5myFqIbHj8q5SW9KR8ZQP6saq4c3ov7aw5MuftOWQCsFzDJV3w/sCShAq7MgUT6oacW00lGRuyDdQA06tZ4ItooCwTpnIROMN6mpjh6E6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710425279; c=relaxed/simple; bh=P7knyHnbZndkT96HWjKBGpGhwkiQR62ld119bnhrD7E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nQ7jUGWUPmDuED21i4Ztomv3k+ssI2CXWW88JJbotEh9+6lLD17ZBvXxKTls2mp+4Lf0f+RiSc7PShfuzkUieME3v7RrEixSk2a6C9rFIWqV+8E6Jx+ucBSmtTGAo5xfvuJnb6nRZYs80xvqagRY4e2Vww3F5UxZXx7AqXeZWZI= 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.190 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.214]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4TwTgY6b3Lz1xr7B; Thu, 14 Mar 2024 22:06:01 +0800 (CST) Received: from dggpeml500021.china.huawei.com (unknown [7.185.36.21]) by mail.maildlp.com (Postfix) with ESMTPS id 7195C1A016C; Thu, 14 Mar 2024 22:07:48 +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; Thu, 14 Mar 2024 22:07:47 +0800 From: Baokun Li To: CC: , , , , , , , , , Subject: [PATCH v3 9/9] ext4: clean up s_mb_rb_lock to fix build warnings with C=1 Date: Thu, 14 Mar 2024 22:09:06 +0800 Message-ID: <20240314140906.3064072-10-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240314140906.3064072-1-libaokun1@huawei.com> References: <20240314140906.3064072-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: dggems705-chm.china.huawei.com (10.3.19.182) 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 48afe5aa228c..b3d616f055b0 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