lkml.org 
[lkml]   [2004]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] order>0 page freeing bug
David Howells <dhowells@redhat.com> wrote:
>
> Here's a patch to fix a bug that occurs when an order>0 page allocation is
> freed.
>
> The bug can be demonstrated by this example:
>
> (1) if __alloc_page() returns an order 1 allocation, you get back two pages,
> both with count == 1
>
> (2) __free_pages() only decrements the counter on the first page
>
> (3) __free_pages_ok() calls free_pages_check() on both pages
>
> (4) free_pages_check() complains that the second page is a bad_page because
> its count is not 0 at that point.

That doesn't sound right - if this was the case, each and every order>0
page freeing would be generating warnings, would it not?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.035 / U:1.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site