Message ID | 153063060664.1818.9541345386733498582.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 3889A601D3 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 15:10:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2362928B30 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 15:10:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16D6D28B58; Tue, 3 Jul 2018 15:10:24 +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 68FC228B30 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 15:10:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 22CA66B0283; Tue, 3 Jul 2018 11:10:22 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1DBF56B0284; Tue, 3 Jul 2018 11:10:22 -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 0CAB96B0285; Tue, 3 Jul 2018 11:10:22 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg0-f69.google.com (mail-pg0-f69.google.com [74.125.83.69]) by kanga.kvack.org (Postfix) with ESMTP id C0E276B0283 for <linux-mm@kvack.org>; Tue, 3 Jul 2018 11:10:21 -0400 (EDT) Received: by mail-pg0-f69.google.com with SMTP id b7-v6so1107790pgv.5 for <linux-mm@kvack.org>; Tue, 03 Jul 2018 08:10:21 -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=Yu9B15txEFQWygGPR2dvHAEIHPzPVk93OAcbqCw/1Rg=; b=i15w9FCwlT2mXO5yBg8WTdoLnzk0IDXOO9LBvNs1TWKxd8ojySPsaiKfmqVhwjqojn dGTf17nZE2GNoSM+S7lJ9tBuhwcPefyzd2GJxQmGSklQG64BoeZByDad0wuh9CNjAHn5 87jk+Kly2ahzbWdlrPATHm3wYyNVokb5xm4lekVgDbM9nDC9ful370qw/0lKAvIBKEmK nEIhLPGHk7BvmYMusGZnxT6zJ2a6wONPAPyo6MBakOdHHtaM/39cwIU1VFgUYIEQOyGP wk684ovNfyyPN0O2mvorf4/94vXtGhLXgxbQZ6hHw6OLG5dU6dnVJTdMbcp8Qdk51irm ekTg== X-Gm-Message-State: APt69E3Abe4M5mqpOpn9sKxSo6Zi4hUlseEF4PKYrZ3QpKrPWeD0mO55 58nevATyV/wzywMsEUrcmjCxPO1TOD6CJP8Rpfw/SgY7oA0D7/MuA2MqfMRZjhtSCY/DVUZY4eu T6dS1X+zZrf3b/MTFVLkJmkChyvMOlPQj2EpZL0yDKoWGr3K2pF2iLNMZcF6tmrtxhA== X-Received: by 2002:a17:902:581:: with SMTP id f1-v6mr30339761plf.48.1530630621470; Tue, 03 Jul 2018 08:10:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLYuT4aT4IjVXlhrVzlNYP2x/ju0oRXiVMZgt7NTACPoi/7R+51u6hvJT18Uv3uQzN8MShd X-Received: by 2002:a17:902:581:: with SMTP id f1-v6mr30339687plf.48.1530630620299; Tue, 03 Jul 2018 08:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530630620; cv=none; d=google.com; s=arc-20160816; b=MdedMTAowuD4i/eWJaDg4kSIQ3tiNXvnuwDxUfJro/Y4pwJxOOAB1zc82sN/rFaret pwGmeP/47ewPpGbc7tE/nHH5uqgnHPjelWobl4Jt5vmTEepBvKo86RqxvqjRq3oUvPf1 zqeRbBCER5Fys+JFdJC+d3YD7eEaLMHWJzvrGKwshWhaETezezLE3d63kfi1rv/JMLIK Da8KMi1Ee63MBcb1SA1Wbbpfw7sjYi0fBncgEiFrV7vXzpuPoG3T1WuNWpAKu8L9bxT7 fmbIsTkuT//mu/QKCgvzjfJ7OCK7h7gg7rFx2TJRkdAqal34aMN7gnBUClcPfidOoWWL v7jg== 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=Yu9B15txEFQWygGPR2dvHAEIHPzPVk93OAcbqCw/1Rg=; b=vN+QXxr4GJpvFA0bIqALLTBC6vAfQ0SufYyclIGn2O7ssXosL9TlsKZaGFhACPGdsS r2ciC0J8S2AjAXfbspauQ6DfSA2AOzC9wm7wSrPuofHeAVqg2PZWXXqQs0Con+pZgc50 LNwtzSKDGwK2zFmzUbYki1IQbU16kXx1LOFdo5gs3w+B8OGYX4wjXzzPtZ1iUzgXoMh3 dr7hNOVdOz3adczd/MkFRavXRyWsJea7kjTEfEd0VVmtTqR5ajnv3WD/PsZCrsSuNDcZ xfZXcuYU0TFB62hYSYybwJ6+IjwQzZ84q4jKNy4M7rfZfSdy369BXqIXjMTzqy+rzQRU hbZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=G6nRZhsK; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.4.138 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40138.outbound.protection.outlook.com. [40.107.4.138]) by mx.google.com with ESMTPS id q16-v6si1329480pfi.183.2018.07.03.08.10.19 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Jul 2018 08:10:20 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.4.138 as permitted sender) client-ip=40.107.4.138; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=G6nRZhsK; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.4.138 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=Yu9B15txEFQWygGPR2dvHAEIHPzPVk93OAcbqCw/1Rg=; b=G6nRZhsKdDM5qk9aeJ344nMaYUb4c6/gVrKxBhcybHMuT+w6At8WmyHwSugMLSnI3OGcJdELYbAT7E/qjUm9h0VfG2Y/h0F3kuQy+pDvXCxI5PylajA0UDD5B5f4QOWxjfsSC+n0YJZFLKXOynAm42R5aM3ecCIpWz6t46CjTJU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (185.231.240.5) by VI1PR0801MB1344.eurprd08.prod.outlook.com (2603:10a6:800:3b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.26; Tue, 3 Jul 2018 15:10:10 +0000 Subject: [PATCH v8 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, akpm@linux-foundation.org, ktkhai@virtuozzo.com Date: Tue, 03 Jul 2018 18:10:06 +0300 Message-ID: <153063060664.1818.9541345386733498582.stgit@localhost.localdomain> In-Reply-To: <153063036670.1818.16010062622751502.stgit@localhost.localdomain> References: <153063036670.1818.16010062622751502.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: [185.231.240.5] X-ClientProxiedBy: DB6P193CA0010.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::20) To VI1PR0801MB1344.eurprd08.prod.outlook.com (2603:10a6:800:3b::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1bd7428-50b5-4e09-947a-08d5e0f71409 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600053)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR0801MB1344; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1344; 3:YHY5MCXCoeV+IU+6jJ8PRH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bpMLInhxD5cKMRZxuOA05CphP7sTYn/K5JQQObLpQL0fwNh+r6dgwalxouZONtQAF3OmrTadRjCopHwbFVBP3R4QlP/9h3aeeaosiLyonNzgAGqiCwBmyBgHxC+AUM/+J08yUKLOvrqolfK+nTjBX87vfi/28sW1DKrdFxUH3RMxSLsM1fGR4j293n1lmyaTXyC8b+hXSO5xl86tJPKlg73XSAFCvqT3BXqNtkS88P5I3Q5C74rtPZr/sCyV+Rrm8+BSmh8o8pdkofQ9TkFAofxVNFxV04ACXAzz5rZO/+T4akaKWai15H+wAGWcvTRMPqhAfMlYQ; 4:in4M5VzTBuVK6OL+ttfAPvRSMbkVRyoyDWoSDOjqD5Ru+yRyIYZeCIHj/cIA1KRjR3POImKlUWGTix+2Gv6mScB0we7TVQTqbT6MH2Mpk8EQDfFpOrM2d/jIvIZtImtOaJQQy9rI+irjRqLycjDmpSotXpCwwBM4A22+HcGHp6b0q3UYzRWCcCP3tKqwQ2ssHi3359VpuQPzM57iDyhyT7OVaUJv+UhJkIebh5+yNTBQgfKoWyAKsKFzL9CnyBs6u7UfnpE0K34oay9ZEyjQ/53dMGN8boGHLnAVyWHIPwoPIkon6utR0ZZjI15TwmNEJHSr5vyqzn/8yiGcsBPHTr0lrlx/JD3JIEYxjEg6IFs2dAyYU5HH7VdNSofe5P/0 X-Microsoft-Antispam-PRVS: <VI1PR0801MB134476935CCF5204FFB1528FCD420@VI1PR0801MB1344.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)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0801MB1344; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1344; X-Forefront-PRVS: 0722981D2A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(376002)(366004)(136003)(346002)(39850400004)(396003)(189003)(199004)(476003)(7416002)(11346002)(446003)(486006)(316002)(47776003)(186003)(386003)(66066001)(68736007)(956004)(53936002)(6506007)(103116003)(6666003)(25786009)(97736004)(14444005)(5660300001)(26005)(86362001)(58126008)(16526019)(6116002)(105586002)(39060400002)(76176011)(52116002)(9686003)(61506002)(7696005)(106356001)(23676004)(2486003)(55016002)(478600001)(7736002)(33896004)(230700001)(81166006)(81156014)(8676002)(2906002)(3846002)(50466002)(8936002)(305945005)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1344; 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?MTtWSTFQUjA4MDFNQjEzNDQ7MjM6cVFYTzdScjdpYjAvQloxMHZVOEpqS3lK?= =?utf-8?B?amppRVRWU3lzUUZFWGZYTWVJNDNoemtHeHFsdVIzdE1PVi9KZDJsc2FMSWJZ?= =?utf-8?B?enB1aC8vRlBmVkN3UHl5aHNTMFVYRTRycEQvdVpQSmlOS285S2NuUS82bkZs?= =?utf-8?B?ZG03SmFVUGk2Mk81djNiQ0c2RWFOeEtMZG1rSkxCSlBmVWs3OWE0Nkp1NjE0?= =?utf-8?B?aGl3ZTBTazRvenJ3eHBXRmJXQkpzSHN4OWltNVo4RXgvUlRRL3J5WEt4ekly?= =?utf-8?B?QzJEb2tFOG1XVkh3Z3Z4NllkWXd3ajFGL3ZoR3k2SGhwazQ1TTh6c0lJYkc0?= =?utf-8?B?ZVRlbTFPUlhQeWJVUExxMkgyMzVqc1VXNDdKQ1FCZ3BxMUhPOU00S3h2ZVlq?= =?utf-8?B?SEVWNy8v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seND0+MoFpEBP/ZXBG7T4TAroanewpjc6TpEmJUJ3X9KrC/wLZacwN4/0zz7sQSQAtJ2x427CYpFnwNFNn7p5yK7cQ= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 15:10:10.9882 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1bd7428-50b5-4e09-947a-08d5e0f71409 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1344 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 f8ae4a04ef36..016c7d3924e4 100644 --- a/mm/list_lru.c +++ b/mm/list_lru.c @@ -66,18 +66,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) @@ -100,8 +106,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 */ @@ -114,7 +123,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++; @@ -140,7 +149,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--;