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