diff options
author | 2024-10-04 09:24:28 +0200 | |
---|---|---|
committer | 2024-10-04 09:24:28 +0200 | |
commit | c6bbfc7ce1567eb7928f22d92b6ad34d8e4ea22b (patch) | |
tree | 88ad5b79876361b117c42e3ed9daf68c57372d29 /include/linux/page-flags.h | |
parent | Linux 6.12-rc1 (diff) | |
parent | migrate: Remove references to Private2 (diff) | |
download | wireguard-linux-c6bbfc7ce1567eb7928f22d92b6ad34d8e4ea22b.tar.xz wireguard-linux-c6bbfc7ce1567eb7928f22d92b6ad34d8e4ea22b.zip |
Merge patch series "Filesystem page flags cleanup"
Matthew Wilcox (Oracle) <willy@infradead.org> says:
The first four patches continue the work begun in 02e1960aafac to make
the mappedtodisk/owner_2 flag available to filesystems which don't use
buffer heads. The last two remove uses of Private2 (we're achingly close
to being rid of it entirely, but that doesn't seem like it'll land this
merge window).
* patches from https://lore.kernel.org/r/20241002040111.1023018-1-willy@infradead.org:
migrate: Remove references to Private2
ceph: Remove call to PagePrivate2()
btrfs: Switch from using the private_2 flag to owner_2
mm: Remove PageMappedToDisk
nilfs2: Convert nilfs_copy_buffer() to use folios
fs: Move clearing of mappedtodisk to buffer.c
Link: https://lore.kernel.org/r/20241002040111.1023018-1-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 1b3a76710487..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) @@ -554,7 +554,7 @@ FOLIO_FLAG(owner_2, FOLIO_HEAD_PAGE) */ TESTPAGEFLAG(Writeback, writeback, PF_NO_TAIL) TESTSCFLAG(Writeback, writeback, PF_NO_TAIL) -PAGEFLAG(MappedToDisk, mappedtodisk, PF_NO_TAIL) +FOLIO_FLAG(mappedtodisk, FOLIO_HEAD_PAGE) /* PG_readahead is only used for reads; PG_reclaim is only for writes */ PAGEFLAG(Reclaim, reclaim, PF_NO_TAIL) |