Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1799828rbb; Tue, 27 Feb 2024 01:12:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVYSwuNXjxs/5PM7xENesSlopqTN2DrcUVXrzvI3ieKsz6AMChItEJ+7mAoGwgKwFPNGlHImYuWUtKe69NVqPfUBDzUpZexlvE4LfY6og== X-Google-Smtp-Source: AGHT+IFD0SFErqyy+/ZwwcAYXLbtmeC+czsNXaaBjzvuey+QM0npHRnHS/Dmvt9ahxW6bFLY8mXq X-Received: by 2002:a05:620a:578d:b0:787:cad2:2c0c with SMTP id wk13-20020a05620a578d00b00787cad22c0cmr1334158qkn.18.1709025160844; Tue, 27 Feb 2024 01:12:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709025160; cv=pass; d=google.com; s=arc-20160816; b=aAtS8wdybe3F9SPJo3SiW99n6A18elG+54hdwgddlThMN46zh740HIIa6ucFaU4gde GocP9BCHqGHYR7yRDdSmonwpZZiCtNmnAck/8C++cT7W3I3KwQDyjDqOlXTtjakCd2dQ GczEpelI8BF/SyJOiI6edcl4QhA3wWuX8XHWxllrCHUOgVdRKIVXZLZC9T+gkFewGMnk OE2wLhfAc8ZUFsk2H20aKZ8LcFIlvOyfk5tNHVslFOHCk4aWNbC0AwJuZuL4pgRCzRnB KoAZBk8b9Q/bnlRTLOfZuEAMFBfsO3ewSnMItDg+6U7Y1BFJ6fN5NX6eRbJJEUEvfWI+ 6KIA== 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=9Y0jHKyJjQsPO+XtKxffhKjqPcwacbt3/9MoGMpLA2s=; fh=4vN4thPQ5z49h0k3wc47Ze2ZGwmxH293ZHjdupTAu0I=; b=iIwT43XXjEBYomvvNzo9Dt03xtPKKpjohdu5rCm3Oqwinj4oU8qgaGAKhFIB6tp/F5 /xfI43p4Pp1VQjcrwALIVPWzKs12t/ntbAjTnikI4sYhd7Zcw3/PYBtHBvgSr1rQ2ksQ QsiLPTV4CT/5DLHRl6PaWvn7qF8c/yJ1O9/nrPpVp8kEs6/ubDMutexLqy1ySx2Azwbd SJtVPzCt94JYnCow9xchcpsrEEP+NzwVRIg7X9HhJi7A3XPKbb3I3KIM+HLSjsJMyA06 CjmN4wg878AcYvggb/QfdpTqY/TzHHx6PvG7rUnVxob0kThZCBd8Qrxnjz8w47yqK+lr RGnw==; 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-1402-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1402-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b17-20020a05620a04f100b00787bd7784d5si6999825qkh.534.2024.02.27.01.12.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 01:12:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1402-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-1402-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1402-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6406D1C2317F for ; Tue, 27 Feb 2024 09:12:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4025A1386CD; Tue, 27 Feb 2024 09:10:16 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (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 0246F137C44; Tue, 27 Feb 2024 09:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709025015; cv=none; b=e6N9+5wvspUpso2XECnVAXZYP0j/4RDmOinl10Sj0SvoFd8CQCOUYTXz2YvM80PUcnCZho9NYQvlMUEnbKppVVlVl3znmw9WiAlmCZK37B2ZiN2SOx60xUARy0k01IQlauQYbw+9sfYEKigLvrgtYSg+BvoRDqatspSBLkJ99xc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709025015; c=relaxed/simple; bh=PhX9SsXv3lhVafDEUUv2mzozNJW2qxHnVj06dy2RHwc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=adxnUTY+KhLRZrcjKau9EpCxgL7lu6z8/ZhQ37L9vvZm3ceCyssI9GGPnhprC0vwrptFpSnOPz2UpVJFdk6MWkiCvl4SnEEc6tTT+c8KgetsyGn6d9oD9iOqpRNdW+UxU2GGGFSMLMGSO1WsP385/80g6LnVVxUrtMVE7y3xARs= 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.189 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.105]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4TkWqt2Ry8zNljx; Tue, 27 Feb 2024 17:08:42 +0800 (CST) Received: from dggpeml500021.china.huawei.com (unknown [7.185.36.21]) by mail.maildlp.com (Postfix) with ESMTPS id C4B071404F7; Tue, 27 Feb 2024 17:10:11 +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, 27 Feb 2024 17:10:11 +0800 From: Baokun Li To: CC: , , , , , , , , , Subject: [PATCH v2 9/9] ext4: clean up s_mb_rb_lock to fix build warnings with C=1 Date: Tue, 27 Feb 2024 17:11:48 +0800 Message-ID: <20240227091148.178435-10-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240227091148.178435-1-libaokun1@huawei.com> References: <20240227091148.178435-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 --- fs/ext4/mballoc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 7ad089df2408..7ae8e04d6ef4 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -3192,7 +3192,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