On 7 May 2001, Linus Torvalds wrote:
> But it is important to re-calculate the deadness after getting the
> lock. Before, it was just an informed guess. After the lock, it is
> knowledge. And you can use informed guesses for heuristics, but you
> must _not_ use them for any serious decisions.
And thats what swap_writepage() is doing:
static int swap_writepage(struct page *page)
{
/* One for the page cache, one for this user, one for page->buffers */
if (page_count(page) > 2 + !!page->buffers)
goto in_use;
if (swap_count(page) > 1)
goto in_use;
...
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Re: page_launder() bug Alan Cox
- Re: page_launder() bug Daniel Phillips
- Re: page_launder() bug H. Peter Anvin
- Re: page_launder() bug Horst von Brand
- Re: page_launder() bug Kai Henningsen
- Re: page_launder() bug Rusty Russell
- Re: page_launder() bug Jonathan Morton
- Re: page_launder() bug Martin Dalecki
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug Marcelo Tosatti
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug Marcelo Tosatti
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug Marcelo Tosatti
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug Marcelo Tosatti

