]> git.hungrycats.org Git - linux/commit
[PATCH] export add_to_page_cache() and __pagevec_lru_add to
authorAndrew Morton <akpm@digeo.com>
Tue, 18 Feb 2003 13:24:42 +0000 (05:24 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 18 Feb 2003 13:24:42 +0000 (05:24 -0800)
commit0d51be591f3b56b4e3c83f4ca09b61ad33c76b69
tree62fc41137011c399a34654530b25a27b60bf9ef2
parentf7483240ea51663649aac797eeb194f46449fa4a
[PATCH] export add_to_page_cache() and __pagevec_lru_add to

CIFS is using these.

Given that the readpages() address_space op is supposed to add the pages to
pagecache, it makes sense to make these functions available to modules.

I can't say that I put a lot of though into the readpages API.  It was
designed as just enough functionality to be able to stuff a bunch of
readahead pages into a single BIO.  The only reason I made it an a_op at all
was because we have toi enter the fs to pick up the ->get_block callback's
address.

But a couple of filesystems seem to be making use of it now.  Reiser4 will
need access at the do_page_cache_readahead() level too.
kernel/ksyms.c
mm/filemap.c