From c987cb10a5f9a323b392a9883355a5f22f5585de Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 6 Aug 2003 21:15:16 -0700 Subject: [PATCH] [PATCH] initialise page->private From: Nathan Scott XFS wants to use page->private as a bitmap of uptodate indicators for sub-page-sized blocks (which is one of the things ->provate was intended for). But someone needs to initialise ->private somewhere. best to do it in the page allocator, so the zeroness of a new page's ->private becomes a system-wide thing. --- mm/page_alloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 16077203e5a49..0ada7181364fe 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -331,6 +331,7 @@ static void prep_new_page(struct page *page, int order) page->flags &= ~(1 << PG_uptodate | 1 << PG_error | 1 << PG_referenced | 1 << PG_arch_1 | 1 << PG_checked | 1 << PG_mappedtodisk); + page->private = 0; set_page_refs(page, order); } -- 2.53.0