Re: [patch 5/18] mark swapout pages PageWriteback()

Linus Torvalds (torvalds@transmeta.com)
Sun, 26 May 2002 17:57:56 -0700 (PDT)


On Sun, 26 May 2002, Andrew Morton wrote:
>
> One fix would be to teach shrink_cache() to wait on PG_locked for swap
> pages. The other approach is to set both PG_locked and PG_writeback
> for swap pages so they can be handled in the same manner as file-backed
> pages in shrink_cache().

How about making them do exactly what normal writeout does, namely drop
the locked bit too. Is there any advantage to holding it any more? The
difference between swap writeout and normal writeout seems to be fairly
arbitrary at this point.

Linus

-
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/