Message ID | 152931518013.28457.11886844069560873308.stgit@localhost.localdomain (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 94CB76029B for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:46:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8474F28474 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:46:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 791BC2899F; Mon, 18 Jun 2018 09:46:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2BAE28474 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:46:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D02986B000A; Mon, 18 Jun 2018 05:46:29 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CD9146B0270; Mon, 18 Jun 2018 05:46:29 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B53606B0271; Mon, 18 Jun 2018 05:46:29 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f200.google.com (mail-pf0-f200.google.com [209.85.192.200]) by kanga.kvack.org (Postfix) with ESMTP id 6E1786B000A for <linux-mm@kvack.org>; Mon, 18 Jun 2018 05:46:29 -0400 (EDT) Received: by mail-pf0-f200.google.com with SMTP id b5-v6so7963713pfi.5 for <linux-mm@kvack.org>; Mon, 18 Jun 2018 02:46:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:subject:from:to:date:message-id :in-reply-to:references:user-agent:mime-version :content-transfer-encoding:spamdiagnosticoutput :spamdiagnosticmetadata; bh=zp5x6zxP9xbWByxcLKLerqcycSeJqMD9HD2opBUN24U=; b=UEKKUQ4xhSZN9ldQoSEfk31V06a24RD87pRXVFpRgfhTffalwXPIByYfzLYyiL23V/ +EjSlcO+s1BrGLmjhN5puooFKr7R1cC3BOW79U1Gq8MkdmUVSIn/UgdqccAhZJia2U9I vPxqUr8eKAgiVIMSxhv+YGHtJm54RHm98JM9m18go+vj9Jr4py0B1abg1RtbnkbknW6G MMUgmUmCo+rJxg3a4ZcmIWfojT8hp9SzHEOoF4sPPD9jNRtkBhudlKaHI0G7fHwN0DfY QvokVbxK6buuu7ekscRR/zn+0VsTM/IjoWrCGwOX6TNmEiF5bJ74RCXFNvU2v5VfgI36 UCPw== X-Gm-Message-State: APt69E3z9xQK50J37NyTpTagZ0IqdbwxzqD3cftI2jgPEdOo0SUaJLmU mZa1xdaGnkHs1HNCuCVz4EpNDZHyeV/3CAjrkwb6CjHxl9X9v4D6gNi+4Qz6PXGJXgePMLchDuD MYMXnLYJ9c3yZ8Lk0G3kIdSR9WqwfpbiAalKbGz7K/YEyTS6xOI1MLjcLqjHHY6uGQw== X-Received: by 2002:a63:721c:: with SMTP id n28-v6mr10304035pgc.96.1529315189124; Mon, 18 Jun 2018 02:46:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKId+iKifNg5zTgnxf8s5zkSHIOecHWT3gK6K/nXGjuKPGfS2w9vBE4uRFCaW4msPqJ9ZBx1 X-Received: by 2002:a63:721c:: with SMTP id n28-v6mr10304011pgc.96.1529315188410; Mon, 18 Jun 2018 02:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529315188; cv=none; d=google.com; s=arc-20160816; b=PGSsw8BKEs0W6SS3Bfsc7/WPHUAGUVDipISYsEUrYNeLWu0s0MikMqlfa7pKzwaOj+ 9dA9i8qO7UPFOdC/GYrYMohKpc4a3d9+0m61EJ73nJ2YMZ2/uLeAbkNriPgZwCWff82N nlX5tpH4fM7yLeqvuwA4Nrn4feoD//QnqYN5lgfRWFFVgRx3yw1QKFL3lk8Yfrc5tUWC 85f1mhnIbU5b3yf54imd2fEj0XQjkielGZcGND2Io4Xk0bb24OGxnS65zhmrlDr4IT06 ikVgvfh1fsBQYMzmRiKM40cwgfTwQPeY1/i1VawDMfJAWfetmya0Jds05nkGPtrvAtHi g0Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=spamdiagnosticmetadata:spamdiagnosticoutput :content-transfer-encoding:mime-version:user-agent:references :in-reply-to:message-id:date:to:from:subject:dkim-signature :arc-authentication-results; bh=zp5x6zxP9xbWByxcLKLerqcycSeJqMD9HD2opBUN24U=; b=Dal/7tRVlsV+fIudcyfGu59//GQ0DViSAk//KZ+rIXECdH5nWt4YHs04YlpoNVnNbK q9wDTkriNcwqCEGeEvB/uhT3wZhYUptnvitqtghhGXTdToHMXtNIhdmQmh+Voa9ep44B bnSFfxzWiV0BtAyQhoAYzWrvmRFT8H6ivfvCsCPaTVHBQnie3/ZMSvKNCLPgWAczX9yP LQ1xrPFUyk99E4Zl0FhC8eYY/pDz6XTDxv9QwMFnzHiFuldhsCACAb1vOM6doSOpG0UW eKDhcMrUwXhfgLklwLKNdkoHIsNTnlLxm19A4Ks7gAdsyPYubIsiCQyblu110T0nmfl6 tasg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=hag+g9mg; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.121 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0121.outbound.protection.outlook.com. [104.47.1.121]) by mx.google.com with ESMTPS id n12-v6si14202404plp.123.2018.06.18.02.46.27 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jun 2018 02:46:28 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.121 as permitted sender) client-ip=104.47.1.121; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=hag+g9mg; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.121 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zp5x6zxP9xbWByxcLKLerqcycSeJqMD9HD2opBUN24U=; b=hag+g9mgGv5VoiLrTjw+0K9doWHwY3fr6seC5S+N0ymQYX+LR77YLGVF11cPfILdrUPXcbafgOoznu0uzKmWsV7nkyfu1N0CJ3pcOYo6tjOXNTkgsRjIF9qK/a1k4s36VJofRL4H0TmXDshkmO3QqwGU2KfNm++Yh6BNCOCYBDM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by VI1PR0801MB1342.eurprd08.prod.outlook.com (2603:10a6:800:3a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.17; Mon, 18 Jun 2018 09:46:22 +0000 Subject: [PATCH v7 REBASED 09/17] list_lru: Add memcg argument to list_lru_from_kmem() From: Kirill Tkhai <ktkhai@virtuozzo.com> To: vdavydov.dev@gmail.com, shakeelb@google.com, viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, tglx@linutronix.de, pombredanne@nexb.com, stummala@codeaurora.org, gregkh@linuxfoundation.org, sfr@canb.auug.org.au, guro@fb.com, mka@chromium.org, penguin-kernel@I-love.SAKURA.ne.jp, chris@chris-wilson.co.uk, longman@redhat.com, minchan@kernel.org, ying.huang@intel.com, mgorman@techsingularity.net, jbacik@fb.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org, lirongqing@baidu.com, aryabinin@virtuozzo.com Date: Mon, 18 Jun 2018 12:46:20 +0300 Message-ID: <152931518013.28457.11886844069560873308.stgit@localhost.localdomain> In-Reply-To: <152931506756.28457.5620076974981468927.stgit@localhost.localdomain> References: <152931506756.28457.5620076974981468927.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0902CA0038.eurprd09.prod.outlook.com (2603:10a6:7:15::27) To VI1PR0801MB1342.eurprd08.prod.outlook.com (2603:10a6:800:3a::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8fefb7a7-185f-424f-4f94-08d5d5005ad9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR0801MB1342; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1342; 3:Q4ulEhARHI7Q4jtXcabEWr2KYjbZejvhWrUj3M9eyCWyQ2Ym+RXO2CtDI0To24QoJRQR6uC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yCFuc4w/vxwOk6pG7GuGKCKvpPMDVy9gDhSkjKbdknXoDOSGA0oDSjIxit5hZ2FRGCUZahr/GmhkxqUo7FpnL2dVmWXFu7iz7FiCefl4tOvuBBwi7zOjUNOO9cSpPmtY2tJceyucVbUSKU2BeFRDTlPecjIAzRr1CEVfVyxyqObS1O7h2rU40EXoSGZoTJSy9cvJqpjNITZHtngq4ul+SzoCzuitvETJjj9wInixuB6EALHajixNPmXFy2VZACeL+DBTYEniMwTgNItOhkw; 4:25eEiHTajR9GstaERq+fD553C4DFyBK26pmLccoDtFU5sdAmCPMJn8vAm3DvFelKmez4h3c7fcGXHmkL54+oYwau4uv4wQpH/dY4+FE6c5UnPVe94kS0ouhcHhWGplX7w7+HvsroT4BljS9ykJlJO49jttfeJD+CUDx88hMaEAAefVKQKAj5LjHbt0xbOZlF6zfmbY4YzBszkaEz+CXVGEq3IopgVByf/Sm30KgVcLEeyHXRITzzurhp6Rh3PXYoafskIW+LSLQoh+JeRUaxy8GUmHsi+9t+YcRgOvRJs0I4NKR3ZDbYh5c2SJETceI+1UUxXTWQWMzed1zgwfFFWVI3JhUTJU0FOWOuDS9F2s0Go3E7niy2QZtDmsJKSt94 X-Microsoft-Antispam-PRVS: <VI1PR0801MB1342C5C4B26D5707195B6F50CD710@VI1PR0801MB1342.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(85827821059158)(211936372134217)(153496737603132); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0801MB1342; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1342; X-Forefront-PRVS: 0707248B64 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39380400002)(366004)(396003)(39840400004)(376002)(346002)(189003)(199004)(25786009)(106356001)(66066001)(47776003)(39060400002)(478600001)(9686003)(61506002)(105586002)(97736004)(8936002)(86362001)(50466002)(81166006)(8676002)(81156014)(305945005)(53936002)(7736002)(446003)(11346002)(486006)(7416002)(956004)(476003)(23676004)(76176011)(7696005)(52116002)(2486003)(68736007)(186003)(230700001)(16526019)(55016002)(386003)(33896004)(6506007)(59450400001)(26005)(316002)(55236004)(58126008)(3846002)(6116002)(103116003)(5660300001)(6636002)(2906002)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1342; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA4MDFNQjEzNDI7MjM6SkJnSkZWQWRYVjltM21NZUFncklaUmpu?= =?utf-8?B?VFNQZC9HeFlCb0tlcFBrRDJueWtNbGw1Q1dhelAwWUZwcUlzWDcvcFA1MkFO?= =?utf-8?B?T3FsUm0xYXM3cENhY3dMZDdGVUR5d1hNbE03Q3RMMTh3SUJITFo2ZnRzRy9o?= =?utf-8?B?TW5nbWFBeFpSMmpBUW0zREEvclVQQ0o2YmRrdVZ4S3NjSjUwOUR1UG5mbnN6?= =?utf-8?B?cjd6WDRrQzNNZVA0a3BaZno3eVpBbTRvWlF3K1AwZng5YzNDWVRjd0xVNjJ1?= =?utf-8?B?YXp4ellnY2tESTJRRlRmWDJTTmUzeEVwdzdSN0tBRzRtMmcycmRGRjNqMnFR?= =?utf-8?B?QnpkVGlDRElFZ1NHQ0RrVGVuUk5obDduTGRMYThQOFkraG10UVVCVjF5L052?= =?utf-8?B?U3dtQ3JETU9OTVhVV0RKQXlzZU5Nd2JvSkV0Vzd6Q2trZlJjbFFqdFVieHM2?= =?utf-8?B?M2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okYBhRxmUJDmPVXqQPcQqw0= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2018 09:46:22.6066 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8fefb7a7-185f-424f-4f94-08d5d5005ad9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1342 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/mm/list_lru.c b/mm/list_lru.c index 077956f8d58f..55a76465f7a2 100644 --- a/mm/list_lru.c +++ b/mm/list_lru.c @@ -65,18 +65,24 @@ static __always_inline struct mem_cgroup *mem_cgroup_from_kmem(void *ptr) } static inline struct list_lru_one * -list_lru_from_kmem(struct list_lru_node *nlru, void *ptr) +list_lru_from_kmem(struct list_lru_node *nlru, void *ptr, + struct mem_cgroup **memcg_ptr) { - struct mem_cgroup *memcg; + struct list_lru_one *l = &nlru->lru; + struct mem_cgroup *memcg = NULL; if (!nlru->memcg_lrus) - return &nlru->lru; + goto out; memcg = mem_cgroup_from_kmem(ptr); if (!memcg) - return &nlru->lru; + goto out; - return list_lru_from_memcg_idx(nlru, memcg_cache_id(memcg)); + l = list_lru_from_memcg_idx(nlru, memcg_cache_id(memcg)); +out: + if (memcg_ptr) + *memcg_ptr = memcg; + return l; } #else static void list_lru_register(struct list_lru *lru) @@ -99,8 +105,11 @@ list_lru_from_memcg_idx(struct list_lru_node *nlru, int idx) } static inline struct list_lru_one * -list_lru_from_kmem(struct list_lru_node *nlru, void *ptr) +list_lru_from_kmem(struct list_lru_node *nlru, void *ptr, + struct mem_cgroup **memcg_ptr) { + if (memcg_ptr) + *memcg_ptr = NULL; return &nlru->lru; } #endif /* CONFIG_MEMCG_KMEM */ @@ -113,7 +122,7 @@ bool list_lru_add(struct list_lru *lru, struct list_head *item) spin_lock(&nlru->lock); if (list_empty(item)) { - l = list_lru_from_kmem(nlru, item); + l = list_lru_from_kmem(nlru, item, NULL); list_add_tail(item, &l->list); l->nr_items++; nlru->nr_items++; @@ -133,7 +142,7 @@ bool list_lru_del(struct list_lru *lru, struct list_head *item) spin_lock(&nlru->lock); if (!list_empty(item)) { - l = list_lru_from_kmem(nlru, item); + l = list_lru_from_kmem(nlru, item, NULL); list_del_init(item); l->nr_items--; nlru->nr_items--;