diff options
Diffstat (limited to 'include/linux/mm_api.h')
-rw-r--r-- | include/linux/mm_api.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/mm_api.h b/include/linux/mm_api.h index f7d6178ea6e039..006dea6a574071 100644 --- a/include/linux/mm_api.h +++ b/include/linux/mm_api.h @@ -853,10 +853,6 @@ static inline bool is_cow_mapping(vm_flags_t flags) return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; } -#if defined(CONFIG_SPARSEMEM) && !defined(CONFIG_SPARSEMEM_VMEMMAP) -#define SECTION_IN_PAGE_FLAGS -#endif - /* * The identification function is mainly used by the buddy allocator for * determining if two pages could be buddies. We are not really identifying @@ -1011,21 +1007,6 @@ static inline pg_data_t *folio_pgdat(const struct folio *folio) return page_pgdat(&folio->page); } -#ifdef SECTION_IN_PAGE_FLAGS -#ifndef BUILD_VDSO32_64 -static inline void set_page_section(struct page *page, unsigned long section) -{ - page->flags &= ~(SECTIONS_MASK << SECTIONS_PGSHIFT); - page->flags |= (section & SECTIONS_MASK) << SECTIONS_PGSHIFT; -} - -static inline unsigned long page_to_section(const struct page *page) -{ - return (page->flags >> SECTIONS_PGSHIFT) & SECTIONS_MASK; -} -#endif -#endif - /** * folio_pfn - Return the Page Frame Number of a folio. * @folio: The folio. |