Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp898067lqo; Wed, 8 May 2024 20:33:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVM1HO57uK9rpsouq2ZzgGLUeWLc0rnko2y1n0E6Go8Mv3fmnX7Pbza/6Jgm6VXqNK18Z6akDNrEWumYUDN+aDLoGZREc4mbiSZOYaaww== X-Google-Smtp-Source: AGHT+IF26cEfcvNtxLzLV3kthwvSThkbl9A4g7mNoLz0ro3owYdU4MCHJC9woFINgB+megseFiMF X-Received: by 2002:a05:622a:cb:b0:43a:e2da:136a with SMTP id d75a77b69052e-43dec297802mr27424431cf.26.1715225617305; Wed, 08 May 2024 20:33:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715225617; cv=pass; d=google.com; s=arc-20160816; b=IOp8bn9pFbNrDGBQh6Ri/I5HIXCW4p8v6gOUHkhakBIHdjMcuZkFM2IzR6oHP6fQLZ YyUEkvzsgcpXj0aronhm8CSSKsaq9kcd1Si5Oft0BKuTViGO4mbVcE4+ZUkemSw6YGbO jO9gRtYJPeXwmxJh6U0+04RRdBsVmdDg8Tn0XAElkMWJE1YCSXo23eu7mUmgBHsOlVT8 gUtD0hRCVPpdxWD0IcJMsY9mPx6JyEwfcmzKLr8Rk93zUnjVLFT86h0W4oJ8VNvCE0Vy vusEOYaqUlv/7Yo0lWEll4/IOWuKihdFTmA2OLPamHX9YumqYWnxyA51a4B4YK5ZXHnX wLNQ== 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:message-id:date:subject:cc:to :from; bh=9qvBItEcek0GZx/q+gQXe1ZS2/EXBxxMeZZ/NDtUQkc=; fh=4tVJAFnKaPq34qr8+aY4m8i2dERIU6hB5Z6ZiLd2f8w=; b=qR0Ti6vzjADZXUZhkiP5aXbL5SECfgzB5tNtmZNLyq1tTVdUn1zsaK9mCLQvXrqxHE ZmNmrjIu/Od43ozloxi0I+TA0ZKVIWyspqhSxFJWoIl5YX6l/RHRaWJGSS8Pl7BiqjbK cSMD7EwxFasUOZ8mR9lQ8VHn7RDPWMAslm9c4nXqmKdBVgDbW8EErrk0f/uZBoZKZ7fB v1SBFcPzl2RwzAYUr2PDX6EQGmnzBq78UioS3s8LuQMUKMEHM1uKUsgtvRAndKQcTeom 500vfr2fX4gMk7/kPaa6mJh/5CRg0HFgQHtYRhugepG/75H3xoqRfnWTjcbkAxzZCPQd yyiQ==; 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-kernel+bounces-174092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df566f678si4987591cf.246.2024.05.08.20.33.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 20:33:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-kernel+bounces-174092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) 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 0C9DB1C22051 for ; Thu, 9 May 2024 03:33:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A04D147C94; Thu, 9 May 2024 03:33:29 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (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 D919E13C3D3; Thu, 9 May 2024 03:33:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715225609; cv=none; b=tik+SwUmOhTtLULMC8f+IhPErKo2DLQkDSvLKF2XScXo5WXP++MCc7VLzANTyxOHqBm/DA3CTi7nt5pABBUHe8MOrBSFK29vkT5nqpFW1XmAVlLK7gfmrpX1vOreu85ixL78e+5XGAhIqSZ+Adh/DALlWjtH1QThfcokhkfeQOE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715225609; c=relaxed/simple; bh=pd7bAii/qeFuRcjl+QTgSWHftIrkr1j19A+devePA/w=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=d4sa6ajOmHUcxZMJJwa0yM1qMC7iHxeQmWlA2Fy65RTbXc2eM1VNZqrJdagP3/Iuz+FoabF+KgP/e5r76wDhFikJSu2P9gML0yh7q5pPG0a/pFXw+lx93+PbLUxKGxpbYeK+fBJSWaa6ssvMe080mS+2IHUO9tlQgqpRYZKMDJY= 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.188 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.163.252]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VZcvJ09hCzYnBp; Thu, 9 May 2024 11:29:32 +0800 (CST) Received: from dggpeml500023.china.huawei.com (unknown [7.185.36.114]) by mail.maildlp.com (Postfix) with ESMTPS id C49D5180080; Thu, 9 May 2024 11:33:23 +0800 (CST) Received: from hulk-vt.huawei.com (10.67.174.26) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 9 May 2024 11:33:23 +0800 From: Xiu Jianfeng To: , , , , , , , , , , , , , , , CC: , , Subject: [PATCH -next] memcg, oom: cleanup unused memcg_oom_gfp_mask and memcg_oom_order Date: Thu, 9 May 2024 03:26:28 +0000 Message-ID: <20240509032628.1217652-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500023.china.huawei.com (7.185.36.114) Since commit 857f21397f71 ("memcg, oom: remove unnecessary check in mem_cgroup_oom_synchronize()"), memcg_oom_gfp_mask and memcg_oom_order are no longer used any more. Signed-off-by: Xiu Jianfeng --- include/linux/sched.h | 2 -- mm/memcontrol.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 8d1cf672ac4c..61591ac6eab6 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1449,8 +1449,6 @@ struct task_struct { #ifdef CONFIG_MEMCG struct mem_cgroup *memcg_in_oom; - gfp_t memcg_oom_gfp_mask; - int memcg_oom_order; /* Number of pages to reclaim on returning to userland: */ unsigned int memcg_nr_pages_over_high; diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 5d4da23264fa..d127c9c5fabf 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2192,8 +2192,6 @@ static bool mem_cgroup_oom(struct mem_cgroup *memcg, gfp_t mask, int order) if (current->in_user_fault) { css_get(&memcg->css); current->memcg_in_oom = memcg; - current->memcg_oom_gfp_mask = mask; - current->memcg_oom_order = order; } return false; } -- 2.34.1