Welcome! Log In Create A New Profile

page caching inside generic_file_splice_read

Posted by Ashif 
page caching inside generic_file_splice_read
July 23, 2009 11:29PM
I am trying to understand how page caching is handled when "generic_file_splice_read" is used to read in file data from disk.
My assumption is that pages that are frequently accessed should be kept in the page cache.

When the file data is loaded into the page cache, the function "add_to_page_cache_lru" is called. However, if the file is already in the page cache, I can't see how or where the lru status of the page is updated in the function "__generic_file_splice_read" or any of the functions it calls. Since no data needs to be read from disk, none of the functions related to I/O or readahead are called. Can someone help me out?

Thanks,
ashif
Author:

Your Email:


Subject:


Message: