Message ID | 20210712194551.91920-2-willy@infradead.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=Bpcp=ME=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C320C07E99 for <linux-mm@archiver.kernel.org>; Mon, 12 Jul 2021 19:47:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DF9D661263 for <linux-mm@archiver.kernel.org>; Mon, 12 Jul 2021 19:47:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DF9D661263 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 148646B0073; Mon, 12 Jul 2021 15:47:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 120576B0095; Mon, 12 Jul 2021 15:47:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F2A926B0098; Mon, 12 Jul 2021 15:47:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0115.hostedemail.com [216.40.44.115]) by kanga.kvack.org (Postfix) with ESMTP id D004F6B0073 for <linux-mm@kvack.org>; Mon, 12 Jul 2021 15:47:05 -0400 (EDT) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id E960A184E640A for <linux-mm@kvack.org>; Mon, 12 Jul 2021 19:47:04 +0000 (UTC) X-FDA: 78354969168.26.7AC6AEA Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf25.hostedemail.com (Postfix) with ESMTP id AB309B0002A0 for <linux-mm@kvack.org>; Mon, 12 Jul 2021 19:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=Ls0PDTK4GmPt7o8GB9HWSuuERwLuQPqR3wzi6YV9cbE=; b=msR3r+CxymI9f1TqwdX859M2f8 efT+6ox25yrnjVp3xSbuo1jNeYNQt9Mm91BMyQyib0fBd5lcHveUyoKoMqSea2uKsdOVNBejxvFxH RRjJW9oV+v1DKdrPlaJh/OoClBowrGno3ocy9gVJKmlTAYyEq8PPAaEOXOHBcZkEp/A+4lqsJKPha 3R57wRTj0xzTnVbTRL0F+SPllevLR0VUmztl6eBJraPpxfo5kCHaKsjPHPKBdiZFqXUZb8qUUBb48 MRWVNUgJ8Ifnc8DX+mX+cSOQX0jhrALm7IT9BQeR5MeE2DTWnVbrYZxx1mtI1HZyv0sOs1JTQzXOP RCUnMJUg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m31sX-000Nvm-4F; Mon, 12 Jul 2021 19:46:15 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: akpm@linux-foundation.org Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, cgroups@vger.kernel.org, Christoph Hellwig <hch@lst.de> Subject: [PATCH v13 01/18] mm: Add folio_nid() Date: Mon, 12 Jul 2021 20:45:34 +0100 Message-Id: <20210712194551.91920-2-willy@infradead.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210712194551.91920-1-willy@infradead.org> References: <20210712194551.91920-1-willy@infradead.org> MIME-Version: 1.0 Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=msR3r+Cx; spf=none (imf25.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-Rspamd-Server: rspam05 X-Stat-Signature: yatqb45wwx57y3act4coksocpptj38um X-Rspamd-Queue-Id: AB309B0002A0 X-HE-Tag: 1626119224-70678 Content-Transfer-Encoding: quoted-printable 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 |
Convert memcg to folios
|
expand
|
diff --git a/include/linux/mm.h b/include/linux/mm.h index a856c078e040..80f27eb151ba 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1427,6 +1427,11 @@ static inline int page_to_nid(const struct page *page) } #endif +static inline int folio_nid(const struct folio *folio) +{ + return page_to_nid(&folio->page); +} + #ifdef CONFIG_NUMA_BALANCING static inline int cpu_pid_to_cpupid(int cpu, int pid) {