mm-simplify-pagedoublemap-with-pf_second-policy.patch removed from -mm tree
The patch titled
Subject: mm: simplify PageDoubleMap with PF_SECOND policy
has been removed from the -mm tree. Its filename was
mm-simplify-pagedoublemap-with-pf_second-policy.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: mm: simplify PageDoubleMap with PF_SECOND policy
Introduce the new page policy of PF_SECOND which lets us use the normal pageflags generation machinery to create the various DoubleMap manipulation functions.
---
include/linux/page-flags.h | 40 ++++++++--------------------------- 1 file changed, 10 insertions(+), 30 deletions(-)
include/linux/page-flags.h renamed from include/linux/page-flags.h~mm-simplify-pagedoublemap-with-pf_second-policy +10 -30
@@ -235,6 +235,9 @@ static inline void page_init_poison(stru* * PF_NO_COMPOUND: * the page flag is not relevant for compound pages. +* +* PF_SECOND: +* the page flag is stored in the first tail page. */ #define PF_POISONED_CHECK (page) ({ \ VM_BUG_ON_PGFLAGS(PagePoisoned(page), page); \
@@ -250,6 +253,9 @@ static inline void page_init_poison(stru#define PF_NO_COMPOUND (page, enforce) ({ \ VM_BUG_ON_PGFLAGS(enforce && PageCompound(page), page); \ PF_POISONED_CHECK(page); }) +#define PF_SECOND (page, enforce) ({ \ + VM_BUG_ON_PGFLAGS(!PageHead(page), page); \ + PF_POISONED_CHECK(&page[1]); })/* * Macros to create function definitions for page flags
@@ -688,42 +694,15 @@ static inline int PageTransTail(struct p* * See also __split_huge_pmd_locked() and page_remove_anon_compound_rmap(). */ -static inline int PageDoubleMap (struct page *page) -{ -return PageHead (page) &&test_bit (PG_double_map, &page[1 ].flags); -} - -static inline void SetPageDoubleMap (struct page *page) -{ -VM_BUG_ON_PAGE (!PageHead (page), page); -set_bit (PG_double_map, &page[1 ].flags); -} - -static inline void ClearPageDoubleMap (struct page *page) -{ -VM_BUG_ON_PAGE (!PageHead (page), page); -clear_bit (PG_double_map, &page[1 ].flags); -} -static inline int TestSetPageDoubleMap (struct page *page) -{ -VM_BUG_ON_PAGE (!PageHead (page), page); -return test_and_set_bit (PG_double_map, &page[1 ].flags); -} - -static inline int TestClearPageDoubleMap (struct page *page) -{ -VM_BUG_ON_PAGE (!PageHead (page), page); -return test_and_clear_bit (PG_double_map, &page[1 ].flags); -} - +PAGEFLAG(DoubleMap, double_map, PF_SECOND) + TESTSCFLAG(DoubleMap, double_map, PF_SECOND)#else TESTPAGEFLAG_FALSE(TransHuge) TESTPAGEFLAG_FALSE(TransCompound) TESTPAGEFLAG_FALSE(TransCompoundMap) TESTPAGEFLAG_FALSE(TransTail) PAGEFLAG_FALSE(DoubleMap) - TESTSETFLAG_FALSE(DoubleMap) - TESTCLEARFLAG_FALSE(DoubleMap) + TESTSCFLAG_FALSE(DoubleMap)#endif /*
@@ -888,6 +867,7 @@ static inline int page_has_private(struc#undef PF_ONLY_HEAD#undef PF_NO_TAIL#undef PF_NO_COMPOUND +#undef PF_SECOND#endif /* !__GENERATING_BOUNDS_H */ #endif /* PAGE_FLAGS_H */
_
Patches currently in -mm which might be from [email protected] are
xarray-add-xa_get_order.patch
xarray-add-xas_split.patch
xarray-add-xas_split-fix-2.patch xarray-add-xas_split-fix-3patch.patch mm-filemap-fix-storing-to-a-thp-shadow-entry.patch mm-filemap-fix-page-cache-removal-for-arbitrary-sized-thps.patch mm-memory-remove-page-fault-assumption-of-compound-page-size.patch mm-memory-remove-page-fault-assumption-of-compound-page-size-fix.patch mm-page_owner-change-split_page_owner-to-take-a-count.patch mm-huge_memory-fix-page_trans_huge_mapcount-assumption-of-thp-size.patch mm-huge_memory-fix-can_split_huge_page-assumption-of-thp-size.patch mm-rmap-fix-assumptions-of-thp-size.patch mm-truncate-fix-truncation-for-pages-of-arbitrary-size.patch mm-page-writeback-support-tail-pages-in-wait_for_stable_page.patch mm-vmscan-allow-arbitrary-sized-pages-to-be-paged-out.patch fs-add-a-filesystem-flag-for-thps.patch fs-do-not-update-nr_thps-for-mappings-which-support-thps.patch mm-readahead-add-define_readahead.patch mm-readahead-make-page_cache_ra_unbounded-take-a-readahead_control.patch mm-readahead-make-do_page_cache_ra-take-a-readahead_control.patch mm-readahead-add-page_cache_sync_ra-and-page_cache_async_ra.patch mm-rename-page_order-to-buddy_order.patch ramfs-fix-nommu-mmap-with-gaps-in-the-page-cache.patch harden-autofs-ioctl-table.patch mm-update-the-documentation-for-vfree.patch