mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
m68k/mm: use __ClearPageReserved()
The PG_reserved flag is cleared from memory that is part of the kernel image (and therefore marked as PG_reserved). Avoid using PG_reserved directly. Link: http://lkml.kernel.org/r/20190114125903.24845-6-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
795c230604
commit
5ffb90b393
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ void __init init_pointer_table(unsigned long ptable)
|
||||||
pr_debug("init_pointer_table: %lx, %x\n", ptable, PD_MARKBITS(dp));
|
pr_debug("init_pointer_table: %lx, %x\n", ptable, PD_MARKBITS(dp));
|
||||||
|
|
||||||
/* unreserve the page so it's possible to free that page */
|
/* unreserve the page so it's possible to free that page */
|
||||||
PD_PAGE(dp)->flags &= ~(1 << PG_reserved);
|
__ClearPageReserved(PD_PAGE(dp));
|
||||||
init_page_count(PD_PAGE(dp));
|
init_page_count(PD_PAGE(dp));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue