This prepares for upcoming checks in page freeing path.

Signed-off-by: Zi Yan <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Harry Yoo <[email protected]>
Cc: [email protected]
---
 mm/slub.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/slub.c b/mm/slub.c
index 865bc050f654..012c71e7b488 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3511,6 +3511,7 @@ static void __free_slab(struct kmem_cache *s, struct slab 
*slab, bool allow_spin
 
        __slab_clear_pfmemalloc(slab);
        page->mapping = NULL;
+       set_page_private(page, 0);
        __ClearPageSlab(page);
        mm_account_reclaimed_pages(pages);
        unaccount_slab(slab, order, s, allow_spin);
-- 
2.51.0

Reply via email to