mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 21:35:07 +00:00
mm: remove PageMlocked
This flag is now only used on folios, so we can remove all the page accessors. Link: https://lkml.kernel.org/r/20240821193445.2294269-7-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
cb29e7941d
commit
99f86bbda3
@ -253,8 +253,8 @@ Basic Management
|
|||||||
|
|
||||||
mlocked pages - pages mapped into a VM_LOCKED VMA - are a class of unevictable
|
mlocked pages - pages mapped into a VM_LOCKED VMA - are a class of unevictable
|
||||||
pages. When such a page has been "noticed" by the memory management subsystem,
|
pages. When such a page has been "noticed" by the memory management subsystem,
|
||||||
the page is marked with the PG_mlocked flag. This can be manipulated using the
|
the folio is marked with the PG_mlocked flag. This can be manipulated using
|
||||||
PageMlocked() functions.
|
folio_set_mlocked() and folio_clear_mlocked() functions.
|
||||||
|
|
||||||
A PG_mlocked page will be placed on the unevictable list when it is added to
|
A PG_mlocked page will be placed on the unevictable list when it is added to
|
||||||
the LRU. Such pages can be "noticed" by memory management in several places:
|
the LRU. Such pages can be "noticed" by memory management in several places:
|
||||||
|
@ -585,12 +585,15 @@ FOLIO_FLAG(unevictable, FOLIO_HEAD_PAGE)
|
|||||||
FOLIO_TEST_CLEAR_FLAG(unevictable, FOLIO_HEAD_PAGE)
|
FOLIO_TEST_CLEAR_FLAG(unevictable, FOLIO_HEAD_PAGE)
|
||||||
|
|
||||||
#ifdef CONFIG_MMU
|
#ifdef CONFIG_MMU
|
||||||
PAGEFLAG(Mlocked, mlocked, PF_NO_TAIL)
|
FOLIO_FLAG(mlocked, FOLIO_HEAD_PAGE)
|
||||||
__CLEARPAGEFLAG(Mlocked, mlocked, PF_NO_TAIL)
|
__FOLIO_CLEAR_FLAG(mlocked, FOLIO_HEAD_PAGE)
|
||||||
TESTSCFLAG(Mlocked, mlocked, PF_NO_TAIL)
|
FOLIO_TEST_CLEAR_FLAG(mlocked, FOLIO_HEAD_PAGE)
|
||||||
|
FOLIO_TEST_SET_FLAG(mlocked, FOLIO_HEAD_PAGE)
|
||||||
#else
|
#else
|
||||||
PAGEFLAG_FALSE(Mlocked, mlocked) __CLEARPAGEFLAG_NOOP(Mlocked, mlocked)
|
FOLIO_FLAG_FALSE(mlocked)
|
||||||
TESTSCFLAG_FALSE(Mlocked, mlocked)
|
__FOLIO_CLEAR_FLAG_NOOP(mlocked)
|
||||||
|
FOLIO_TEST_CLEAR_FLAG_FALSE(mlocked)
|
||||||
|
FOLIO_TEST_SET_FLAG_FALSE(mlocked)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_USES_PG_UNCACHED
|
#ifdef CONFIG_ARCH_USES_PG_UNCACHED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user