]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] initialise page->private
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Aug 2003 04:15:16 +0000 (21:15 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 7 Aug 2003 04:15:16 +0000 (21:15 -0700)
From: Nathan Scott <nathans@sgi.com>

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

index 16077203e5a49b848ea35c0a7492d48e101e456b..0ada7181364fee249e3a661c327459dedac55e4e 100644 (file)
@@ -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);
 }