aboutsummaryrefslogtreecommitdiff
path: root/include/linux/page-flags.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-10-02 05:01:07 +0100
committerChristian Brauner <brauner@kernel.org>2024-10-04 09:24:25 +0200
commitfd15ba4cb00a43fb4df42e1f95f94857ad122eea (patch)
tree30bcf9451f7b284ba7da206a1ea2091a40e82fd3 /include/linux/page-flags.h
parenta6752a6e7fb0537ed9cc22049de06b688821d7b1 (diff)
downloadlinux-fd15ba4cb00a43fb4df42e1f95f94857ad122eea.tar.gz
linux-fd15ba4cb00a43fb4df42e1f95f94857ad122eea.tar.bz2
linux-fd15ba4cb00a43fb4df42e1f95f94857ad122eea.zip
ceph: Remove call to PagePrivate2()
Use the folio that we already have to call folio_test_private_2() instead. This is the last call to PagePrivate2(), so replace its PAGEFLAG() definition with FOLIO_FLAG(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Link: https://lore.kernel.org/r/20241002040111.1023018-6-willy@infradead.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r--include/linux/page-flags.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 35d08c30d4a6..4c2dfe289046 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -543,7 +543,7 @@ FOLIO_FLAG(swapbacked, FOLIO_HEAD_PAGE)
* - PG_private and PG_private_2 cause release_folio() and co to be invoked
*/
PAGEFLAG(Private, private, PF_ANY)
-PAGEFLAG(Private2, private_2, PF_ANY) TESTSCFLAG(Private2, private_2, PF_ANY)
+FOLIO_FLAG(private_2, FOLIO_HEAD_PAGE)
/* owner_2 can be set on tail pages for anon memory */
FOLIO_FLAG(owner_2, FOLIO_HEAD_PAGE)