Re: [patch] swap cache read accesses

Linus Torvalds (torvalds@transmeta.com)
Tue, 4 May 1999 11:12:12 -0700 (PDT)


On Tue, 4 May 1999, Stephen C. Tweedie wrote:
>
> Yes there is. That's the whole reason the swap cache was added in the
> first place. It means that if we want to reuse the process's physical
> memory again, we don't have to write it back to swap.

Ahh, I had forgotten that case. Although Andrea was certainly right about
the unnecessary test for PageCache - as long as we have any reference to
the page (and we just created a new one when we looked it up) the
PageCacheness can't change (anybody else trying to write to the page would
have COW'ed at that point).

Linus

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