From nobody Thu Apr 2 14:14:20 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0B717343D86 for ; Sat, 28 Mar 2026 19:52:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774727552; cv=none; b=No47tNhidL/INum+fQ91v+zZSd6VMUHkkyBJ/Bc03+bfoc3IPErjkb34seKn41i4pcJ6t/89x39FT3qgAF2KdF0ejaAm+MlYKQKsVgwPXB4a3mUT7HzVhRfUNMPFcx0GiHab74humh1o4+NR5P/52i6C966VI8yqrM36eUFf3xs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774727552; c=relaxed/simple; bh=GEmZonv36+Qup1ubevJ6ZlRq/DuzmmPuCUY205VEyyw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NfvqA9204FJhJ8xF9y6P7s1IfKoRIA8/b2l5GEeW8PwrOq7XGmwXBQZ+s2yNL6n+VUpLt49ZUtRUtkSjOsTEzGCv/BP/v7XF9W3uLHAhTET63nd/8ouLNMFhKBrjBMq9ucS4nW3SEu6EHOghK6JtbLjcH67dhI12daFiaxnCXPo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P4Ebp3Kj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P4Ebp3Kj" Received: by smtp.kernel.org (Postfix) with ESMTPS id E1339C2BCB1; Sat, 28 Mar 2026 19:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774727551; bh=GEmZonv36+Qup1ubevJ6ZlRq/DuzmmPuCUY205VEyyw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=P4Ebp3KjPFXrAb2qxb9JmL/MPOFdaswcuwIgEuT82iZqx54CAfgC5QMX1RSZagfrK O4coN0GTuIRj+l9QCrKVTTFBRzfBjeGl9Wra42dNfA2Ly4cKgnaTS0dwokFL7HLru6 xIs1/NCHyXg1lU41UexqftQcgYTtKsDZL6841Q4gNJkMThNjnvnWivXgBYCeRkByqd bPb2TjhmKSQ4+wGGlGuUnpJTY4m5dOu8FG3EHBTZ377Szgw2CF7jFtBzSHomhjqhYj X4nMgJGfltS/Gjvzn/F1KzcnUK025KQVjb0F4DNOnvwDewpx85hI9DALmCDYEGN1Xj 2xROk4D/3ofLQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8BD410F3DF8; Sat, 28 Mar 2026 19:52:31 +0000 (UTC) From: Kairui Song via B4 Relay Date: Sun, 29 Mar 2026 03:52:37 +0800 Subject: [PATCH v2 11/12] mm/vmscan: remove sc->unqueued_dirty Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260329-mglru-reclaim-v2-11-b53a3678513c@tencent.com> References: <20260329-mglru-reclaim-v2-0-b53a3678513c@tencent.com> In-Reply-To: <20260329-mglru-reclaim-v2-0-b53a3678513c@tencent.com> To: linux-mm@kvack.org Cc: Andrew Morton , Axel Rasmussen , Yuanchu Xie , Wei Xu , Johannes Weiner , David Hildenbrand , Michal Hocko , Qi Zheng , Shakeel Butt , Lorenzo Stoakes , Barry Song , David Stevens , Chen Ridong , Leno Hou , Yafang Shao , Yu Zhao , Zicheng Wang , Kalesh Singh , Suren Baghdasaryan , Chris Li , Vernon Yang , linux-kernel@vger.kernel.org, Qi Zheng , Baolin Wang , Kairui Song X-Mailer: b4 0.15.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774727549; l=878; i=kasong@tencent.com; s=kasong-sign-tencent; h=from:subject:message-id; bh=1kSyn/NqM3RpP1g8xDeKI3xdQvt+WcrXpJEY2B2ekAo=; b=pbHhbdpkvvczwQ5CESey5xOFg1O3oJ3xHcw35gtP/OVyrgupgxyhl/28WVkmMpYTUjW19AL91 d8jSmspgQXvDKVixNgocxeclptPx0D7LmkzT6Lh8rGckdL4+7Hj85in X-Developer-Key: i=kasong@tencent.com; a=ed25519; pk=kCdoBuwrYph+KrkJnrr7Sm1pwwhGDdZKcKrqiK8Y1mI= X-Endpoint-Received: by B4 Relay for kasong@tencent.com/kasong-sign-tencent with auth_id=562 X-Original-From: Kairui Song Reply-To: kasong@tencent.com From: Kairui Song No one is using it now, just remove it. Suggested-by: Axel Rasmussen Signed-off-by: Kairui Song Reviewed-by: Baolin Wang --- mm/vmscan.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 603be5ef3ef2..1783da54ada1 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -169,7 +169,6 @@ struct scan_control { =20 struct { unsigned int dirty; - unsigned int unqueued_dirty; unsigned int congested; unsigned int writeback; unsigned int immediate; @@ -2035,7 +2034,6 @@ static unsigned long shrink_inactive_list(unsigned lo= ng nr_to_scan, =20 sc->nr.dirty +=3D stat.nr_dirty; sc->nr.congested +=3D stat.nr_congested; - sc->nr.unqueued_dirty +=3D stat.nr_unqueued_dirty; sc->nr.writeback +=3D stat.nr_writeback; sc->nr.immediate +=3D stat.nr_immediate; sc->nr.taken +=3D nr_taken; --=20 2.53.0