]> git.neil.brown.name Git - history.git/commit
[PATCH] hot-n-cold pages: use cold pages for readahead
authorAndrew Morton <akpm@digeo.com>
Wed, 30 Oct 2002 07:36:03 +0000 (23:36 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 30 Oct 2002 07:36:03 +0000 (23:36 -0800)
commit5019ce29f74a7d7829beb25257f13b5080e2e6d6
tree8bfc3b206521712e3a066b83f371ea91122d85bd
parenta206231bbe6ffb988cdf9fcbdfd98e49abaf4819
[PATCH] hot-n-cold pages: use cold pages for readahead

It is usually the case that pagecache reads use busmastering hardware
to transfer the data into pagecache.  This invalidates the CPU cache of
the pagecache pages.

So use cache-cold pages for pagecache reads.  To avoid wasting
cache-hot pages.
include/linux/pagemap.h
mm/filemap.c
mm/readahead.c