add_to_page_cache — add newly allocated pagecache pages
int add_to_page_cache
(struct page * page, struct address_space * mapping, pgoff_t offset, gfp_t gfp_mask);
page to add
the page's address_space
page index
page allocation mode
This function is used to add newly allocated pagecache pages; the page is new, so we can just run SetPageLocked against it. The other page state flags were set by rmqueue.
This function does not add the page to the LRU. The caller must do that.