]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm: Remove PageMappedToDisk
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Oct 2024 04:01:05 +0000 (05:01 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 4 Oct 2024 07:24:24 +0000 (09:24 +0200)
All callers have now been converted to the folio APIs, so remove
the page API for this flag.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20241002040111.1023018-4-willy@infradead.org
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/page-flags.h

index 1b3a7671048788d8adbe29bc863209d66317cb06..35d08c30d4a630dc578f9da23f31358b2649897b 100644 (file)
@@ -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)