Message ID | 20220504182857.4013401-26-willy@infradead.org (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 947EDC433F5 for <linux-mm@archiver.kernel.org>; Wed, 4 May 2022 18:29:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 16DD66B009B; Wed, 4 May 2022 14:29:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 58ECD6B0087; Wed, 4 May 2022 14:29:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 282116B0098; Wed, 4 May 2022 14:29:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 3C9036B009E for <linux-mm@kvack.org>; Wed, 4 May 2022 14:29:07 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 10D2926573 for <linux-mm@kvack.org>; Wed, 4 May 2022 18:29:07 +0000 (UTC) X-FDA: 79428897534.19.449F6B6 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf14.hostedemail.com (Postfix) with ESMTP id 11AC0100085 for <linux-mm@kvack.org>; Wed, 4 May 2022 18:29: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=nTEkyGMNV3YIsBhZJ3SG87n83LNasMy5ITvvN2uOSLM=; b=XHeL/IFPoKPKRXrq30EfqqF4m4 5EbzUbGNuP2d8gnsd5a5204y+jvEcKWZOXwGg71oR+6ftol6oDD1BI7TRH/mOjQHdh1dsi2oaaXvH iAWeBVDJKEPbQOyGzZWFaLopLPO3fiNNHR+OD08HVebl0QEbc5c65szYkPpbo+JCwzm5zPUZAhdcV E+psAz9wIEaWwS9vOIU/ZMxr6JNsMjo0u4OvTMOkpXHw+xHnJroofzyFUposXoHP8+ozbQwbOkwOI cTNFdJBwm20HhrDEQPuDTpOBNnDJAWEHJbVWCW5ylRcllYSMaSwGKXXAH+EYk1J8KviGrlzJ/qkhE 8Asqks8w==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmJkH-00Gq9U-5S; Wed, 04 May 2022 18:29:05 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: akpm@linuxfoundation.org, linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org> Subject: [PATCH v2 25/26] mm: Add folio_test_movable() Date: Wed, 4 May 2022 19:28:56 +0100 Message-Id: <20220504182857.4013401-26-willy@infradead.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220504182857.4013401-1-willy@infradead.org> References: <20220504182857.4013401-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: yaz5xnem799win1gpspsrx8d6codoptm X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 11AC0100085 Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="XHeL/IFP"; spf=none (imf14.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-Rspam-User: X-HE-Tag: 1651688944-335127 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 |
Folio patches for 5.19
|
expand
|
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/include/linux/migrate.h b/include/linux/migrate.h index 90e75d5a54d6..8b9d1e3d243d 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -100,6 +100,11 @@ static inline void __ClearPageMovable(struct page *page) } #endif +static inline bool folio_test_movable(struct folio *folio) +{ + return PageMovable(&folio->page); +} + #ifdef CONFIG_NUMA_BALANCING extern int migrate_misplaced_page(struct page *page, struct vm_area_struct *vma, int node);
This is the folio equivalent of PageMovable() which is needed to convert mm/migrate.c to folios. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- include/linux/migrate.h | 5 +++++ 1 file changed, 5 insertions(+)