Message ID | 20220614071650.206064-5-yuzhao@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C611CCA480 for <linux-mm@archiver.kernel.org>; Tue, 14 Jun 2022 07:17:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B4B8C8D0210; Tue, 14 Jun 2022 03:17:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9C9B28D0217; Tue, 14 Jun 2022 03:17:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D65D8D0210; Tue, 14 Jun 2022 03:17:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 35E718D0210 for <linux-mm@kvack.org>; Tue, 14 Jun 2022 03:17:33 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 07B5A35841 for <linux-mm@kvack.org>; Tue, 14 Jun 2022 07:17:33 +0000 (UTC) X-FDA: 79575985986.26.9443D4A Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) by imf18.hostedemail.com (Postfix) with ESMTP id 939101C0084 for <linux-mm@kvack.org>; Tue, 14 Jun 2022 07:17:32 +0000 (UTC) Received: by mail-yb1-f202.google.com with SMTP id e5-20020a255005000000b0065cb3669fe9so6989652ybb.0 for <linux-mm@kvack.org>; Tue, 14 Jun 2022 00:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc:content-transfer-encoding; bh=D1tI7WDD6BkSp8vdJUGyasd9RspDYVcf2s3K3k00n8E=; b=oVRZoBVjG7Z4RBep9kZJo6+f/8GPme9EC4Rjg3mMbmfp42nGp5yz4K6r1QvXRcxPJN 9mMsDFeH6u1+l2WSoQ3O6zlXfQR4yhMIySD4Z/GkwdIaewcfx6jJrixTMAAqtgMsa34q RWlzUXwTCHNovn+liPTEnS7IyzwYNVTpiZlKrhsx4qhGPdMXNEitlBg7tE3NeJZWPJH1 nTt1+klEynatT9dGdyS+6oZr5/WQoTUASriruXj9BnKhuytK+J2aIZNhfOtOrVdIxPuh jSLKFFaZSA+H5uB9Tl0el85eepw4IilpgV9W609BtW5CIgwFJw6QSZYoKZ6+yIMqmqg9 4A1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc:content-transfer-encoding; bh=D1tI7WDD6BkSp8vdJUGyasd9RspDYVcf2s3K3k00n8E=; b=zpNj/EJcgSot2qAFWvyLBGgiIyfoaTUo2cmAC7+NUFz03gjqSvk9UFDZ73Z3Us5umR erZzVwhW+SBTUO+3WWZ8hP9j/gNMmuCXFIzFBj9CChHgRUQJpt/438vxVf58xmQnq0fC 1OjBcEH/JKHMymlowiB26LRyjLaIq0ZN/v8w8MQdYP6vK7pniXX7ANWuDOUtCnUQz4A4 8vDoKxfVexLs8v20plEYyEqKd8PPENn5vIIXfa26ToOQ1EeRg83ae2w2rTCricGKjM96 fIP2wynAkqnU6M88K5Uc+8KbPuGwPlkyMOeSTyXh+GZnOKDtr7Ik1T9816HY1PWm44jy m+4Q== X-Gm-Message-State: AJIora/ZkV0hJ0Sdi4P+jgqVD4FvGlqJ8VWycW/hn6G9hSJLOKz3LPfV 0y+uWYhyyAKP2X7h90z5H5+mJhkXqx4= X-Google-Smtp-Source: AGRyM1toFkvdpMNGM0kO7TSnX52idsIuCtYt4XUqDdqzJqgRklSPx3240tBaTFSm3AZCDyJ2di6Eb18fdcQ= X-Received: from yuzhao.bld.corp.google.com ([2620:15c:183:200:eaa7:1f3f:e74a:2a26]) (user=yuzhao job=sendgmr) by 2002:a25:3c45:0:b0:664:cf75:c2d6 with SMTP id j66-20020a253c45000000b00664cf75c2d6mr3416410yba.446.1655191051871; Tue, 14 Jun 2022 00:17:31 -0700 (PDT) Date: Tue, 14 Jun 2022 01:16:41 -0600 In-Reply-To: <20220614071650.206064-1-yuzhao@google.com> Message-Id: <20220614071650.206064-5-yuzhao@google.com> Mime-Version: 1.0 References: <20220614071650.206064-1-yuzhao@google.com> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [PATCH v12 04/14] Revert "include/linux/mm_inline.h: fold __update_lru_size() into its sole caller" From: Yu Zhao <yuzhao@google.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Andi Kleen <ak@linux.intel.com>, Aneesh Kumar <aneesh.kumar@linux.ibm.com>, Catalin Marinas <catalin.marinas@arm.com>, Dave Hansen <dave.hansen@linux.intel.com>, Hillf Danton <hdanton@sina.com>, Jens Axboe <axboe@kernel.dk>, Johannes Weiner <hannes@cmpxchg.org>, Jonathan Corbet <corbet@lwn.net>, Linus Torvalds <torvalds@linux-foundation.org>, Matthew Wilcox <willy@infradead.org>, Mel Gorman <mgorman@suse.de>, Michael Larabel <Michael@michaellarabel.com>, Michal Hocko <mhocko@kernel.org>, Mike Rapoport <rppt@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Tejun Heo <tj@kernel.org>, Vlastimil Babka <vbabka@suse.cz>, Will Deacon <will@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, page-reclaim@google.com, Yu Zhao <yuzhao@google.com>, Miaohe Lin <linmiaohe@huawei.com>, Brian Geffon <bgeffon@google.com>, Jan Alexander Steffens <heftig@archlinux.org>, Oleksandr Natalenko <oleksandr@natalenko.name>, Steven Barrett <steven@liquorix.net>, Suleiman Souhlal <suleiman@google.com>, Daniel Byrne <djbyrne@mtu.edu>, Donald Carr <d@chaos-reins.com>, " =?utf-8?q?Holger_Hoffst=C3=A4tte?= " <holger@applied-asynchrony.com>, Konstantin Kharlamov <Hi-Angel@yandex.ru>, Shuang Zhai <szhai2@cs.rochester.edu>, Sofia Trinh <sofia.trinh@edi.works>, Vaibhav Jain <vaibhav@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655191052; a=rsa-sha256; cv=none; b=OPDPNa5zSkfmHI4HNzBXM3k6YRkEfWH+f57ybfCV+UpBgrRgHjkvY/L2XG9pgAjCsQk+Dw EAmouncgdY3qDgn4s2LyyMQUVI3THLw6q9knPJ0mj5Xzfa8fmBOcAeTDexwCNIRvhu/vQA YzsT/FELQACntxQtodRE7Yz+qe+0EC0= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=oVRZoBVj; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf18.hostedemail.com: domain of 3CzaoYgYKCDQokpXQeWeeWbU.SecbYdkn-ccalQSa.ehW@flex--yuzhao.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3CzaoYgYKCDQokpXQeWeeWbU.SecbYdkn-ccalQSa.ehW@flex--yuzhao.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655191052; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=D1tI7WDD6BkSp8vdJUGyasd9RspDYVcf2s3K3k00n8E=; b=bHFGkbsWhukwRhXi4tchdiomqw+MOQhr49sFOcKO+pBChww4OHiiAKNiaSmsnQwS+n8t31 uMrlJYGVCaEX8RcdaLsWN3M/GpvYBPNttt826WPTzlxjLgy0e2tQL2QLOrVoHtIvLRzQKG riXZdNTchGWb0bVqDVbrGByZ4bjp7Hk= Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=oVRZoBVj; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf18.hostedemail.com: domain of 3CzaoYgYKCDQokpXQeWeeWbU.SecbYdkn-ccalQSa.ehW@flex--yuzhao.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3CzaoYgYKCDQokpXQeWeeWbU.SecbYdkn-ccalQSa.ehW@flex--yuzhao.bounces.google.com X-Rspam-User: X-Stat-Signature: hffx1r59ind6hzqai7o1da8cjiy9ydy6 X-Rspamd-Queue-Id: 939101C0084 X-Rspamd-Server: rspam08 X-HE-Tag: 1655191052-214009 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> |
Series |
Multi-Gen LRU Framework
|
expand
|
diff --git a/include/linux/mm_inline.h b/include/linux/mm_inline.h index 7b25b53c474a..fb8aadb81cd6 100644 --- a/include/linux/mm_inline.h +++ b/include/linux/mm_inline.h @@ -34,7 +34,7 @@ static inline int page_is_file_lru(struct page *page) return folio_is_file_lru(page_folio(page)); } -static __always_inline void update_lru_size(struct lruvec *lruvec, +static __always_inline void __update_lru_size(struct lruvec *lruvec, enum lru_list lru, enum zone_type zid, long nr_pages) { @@ -43,6 +43,13 @@ static __always_inline void update_lru_size(struct lruvec *lruvec, __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); __mod_zone_page_state(&pgdat->node_zones[zid], NR_ZONE_LRU_BASE + lru, nr_pages); +} + +static __always_inline void update_lru_size(struct lruvec *lruvec, + enum lru_list lru, enum zone_type zid, + long nr_pages) +{ + __update_lru_size(lruvec, lru, zid, nr_pages); #ifdef CONFIG_MEMCG mem_cgroup_update_lru_size(lruvec, lru, zid, nr_pages); #endif