From patchwork Mon Nov 27 22:46:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nhat Pham X-Patchwork-Id: 170488 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3517553vqx; Mon, 27 Nov 2023 14:47:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IF12KoPajG69eA0XRKeAFzExl0ikI5H0bRbjuDeR0sV3Ajo/LdWS5zv5JzU1JNl6rZzlALz X-Received: by 2002:a05:6a20:6a0e:b0:18a:7498:de11 with SMTP id p14-20020a056a206a0e00b0018a7498de11mr15475864pzk.4.1701125228169; Mon, 27 Nov 2023 14:47:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701125228; cv=none; d=google.com; s=arc-20160816; b=oN1IMwXN9vOZcWVvlStWKT2FyhAyRBn9G8MaFmylYrnKtBrCe5RaA4rm3GlT78DCJi fh6UYKBYcorYcfSU2KaFkcUp4QGH5jipiEK8+N52WaYMwrylUhJ/JrrE7nPJ169BeaHB KgP606CZiMtZ8MFaKaNGVufJthaGYquJ3WwZxcOcFZqY53QMO4K2LvyCFCnbfSKFhOmR rbAWMAQ/m9dT9PMbn7Zd/K2nv6J2WByH16PKGa+GfVEld5o04EJLDUteCoRnVGUPubzl 3uLtw0/cnWxG0nFWBKqOnHnvykNBfLvWj46BcWMQ9o8NyPFcMVZe4cJOVdZr02YG1N9O 3oMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1oCTGiSWgB9NsXiyG8nsZcknofook+2izslwvO0IvTU=; fh=5ynFD2G6LA0fdRuAOSZxbBxHoIIG4U3xrwbnkupZs28=; b=t+YWCj789pkZz1j8nln8KOQbUru1DpJ0MsauEpKoMd72PaAKt8Rk11t6qdm2YaMH2d behdJnMV2mLsE8fjZ57MffKerzttoimRxDCn78Mcp2mS0O7Fi99rpyV8ZBKOvdqxgLzI A6q9iwot3p7hKh3RyEuSvFFfpUjttERkgTE1DsTgpISQ1UuASlMyDgnPDXcW+2jSjJOc SQYEcSTdi/MSG0kr8bYFi+5ceZvtHcKiWrBdY0xn5JoaaSukILSjvQPnQwT0n0iayy9o dRtQIF5r52zj9C0XOJ/uCxomeS5mmlj4hV86qIDR+qW2r/InpIPaheXA6F7lUrlhSbS/ qsRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jzCS4G0s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 16-20020a631650000000b005c1589db3e6si10683594pgw.647.2023.11.27.14.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:47:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jzCS4G0s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1B0AE8246962; Mon, 27 Nov 2023 14:46:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233519AbjK0Wqt (ORCPT + 99 others); Mon, 27 Nov 2023 17:46:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233360AbjK0Wqs (ORCPT ); Mon, 27 Nov 2023 17:46:48 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 499BF137; Mon, 27 Nov 2023 14:46:52 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6c320a821c4so4128515b3a.2; Mon, 27 Nov 2023 14:46:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701125212; x=1701730012; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1oCTGiSWgB9NsXiyG8nsZcknofook+2izslwvO0IvTU=; b=jzCS4G0sHsouh0ifFdwoiS3GlA2BszjlZHS3kCWqxN+eQSTkHaEQ9PpIPviCQzzTIg qUYBXHTJW0gshTMQQMOJz9QVwfFmgtYMldKODHPY9MFAP/Rt8bPtGJ08IABkvlb63LWF oIY7j7Rj/UvlFeoyim3THydk7Nh7MRxrrsfexmB3s6PcizhdpS5R7rD5/6zleNVoIBrT zTjp4DpEszp20UQuckI8mE+/yEsrLm1d+qDwh01RB4CUgOraOxE5P7IIuXBfOqNlz882 jIouhs0PJNx+3zlhvtnzetvKzuMVmR3IARHNYxFrQmEARdcWZuntJAPLO1oit33D8r6S 7JUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701125212; x=1701730012; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1oCTGiSWgB9NsXiyG8nsZcknofook+2izslwvO0IvTU=; b=X8RXYdE+0gaqHvNZMXaEB+sBOzSUt111ehoKPLmAR0iwn0qMFurKZQQsM0YlIEOb8W dYFZaS6TqOuA6yKNKQO6TFdI6rrs8nOMOTKPv7IT2Ba/p5HxrbyCqbsMtrxWCrdBP/4d 7vAP24K0aYTczhGNJzEotuGTZGwKlyHAO98cwAGGvUm1hN0mFBFHzY1+HbHyQjO8InWq WRaNAK4Qro/ZTDYB77coAq/2hsXsJmjoYzhZjUPXn0C7AQT8AvsxUfyRZJP0HBdSioml LwN+N71q7f8YWPaXLdN+Hm8LNf9jvF9Du9WBdvbyr1MwbmD63ZIAPc+uGuDdpzajPdLv k6Yg== X-Gm-Message-State: AOJu0YzocVgzfKMqWQgseYZyTBAseV5NY/ljNeBxxDA8gWPv/VCbNGbe TUtCGAZwZ3TfLZuJDPlA9QZd9rLt43I= X-Received: by 2002:a05:6a00:2d90:b0:6c9:9e11:859d with SMTP id fb16-20020a056a002d9000b006c99e11859dmr14050165pfb.1.1701125211462; Mon, 27 Nov 2023 14:46:51 -0800 (PST) Received: from localhost (fwdproxy-prn-023.fbsv.net. [2a03:2880:ff:17::face:b00c]) by smtp.gmail.com with ESMTPSA id h5-20020a056a00218500b00690ca67d429sm7615145pfi.100.2023.11.27.14.46.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:46:51 -0800 (PST) From: Nhat Pham To: akpm@linux-foundation.org Cc: hannes@cmpxchg.org, cerasuolodomenico@gmail.com, yosryahmed@google.com, sjenning@redhat.com, ddstreet@ieee.org, vitaly.wool@konsulko.com, mhocko@kernel.org, roman.gushchin@linux.dev, shakeelb@google.com, muchun.song@linux.dev, chrisl@kernel.org, linux-mm@kvack.org, kernel-team@meta.com, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, shuah@kernel.org Subject: [PATCH v6 1/6] list_lru: allows explicit memcg and NUMA node selection (fix) Date: Mon, 27 Nov 2023 14:46:50 -0800 Message-Id: <20231127224650.2636224-1-nphamcs@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231127193703.1980089-2-nphamcs@gmail.com> References: <20231127193703.1980089-2-nphamcs@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:46:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783759087329288421 X-GMAIL-MSGID: 1783759087329288421 The original patch missed a list_lru_del() -> list_lru_del_obj() conversion. This patch fixed that. Signed-off-by: Nhat Pham --- drivers/android/binder_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index e80669d4e037..f69d30c9f50f 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -234,7 +234,7 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate, if (page->page_ptr) { trace_binder_alloc_lru_start(alloc, index); - on_lru = list_lru_del(&binder_alloc_lru, &page->lru); + on_lru = list_lru_del_obj(&binder_alloc_lru, &page->lru); WARN_ON(!on_lru); trace_binder_alloc_lru_end(alloc, index);