Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: page_alloc: clear PG_locked before checking flags on free
da456f1 "page allocator: do not disable interrupts in free_page_mlock()" moved the PG_mlocked clearing after the flag sanity checking which makes mlocked pages always trigger 'bad page'. Fix this by clearing the bit up front. Reported--and-debugged-by: Peter Chubb <[email protected]> Signed-off-by: Johannes Weiner <[email protected]> Acked-by: Mel Gorman <[email protected]> Tested-by: Maxim Levitsky <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information