--- b377d31bd5b83d2d1c90bb7a908fad5420a21135 +++ dd828ea59dc7e0002e00f87f166940481206b8b1 @@ -498,8 +498,8 @@ out: } EXPORT_SYMBOL(add_to_page_cache_locked); -int __add_to_page_cache_lru(struct page *page, struct address_space *mapping, - pgoff_t offset, gfp_t gfp_mask, int tail) +int add_to_page_cache_lru(struct page *page, struct address_space *mapping, + pgoff_t offset, gfp_t gfp_mask) { int ret; @@ -515,18 +515,12 @@ int __add_to_page_cache_lru(struct page ret = add_to_page_cache(page, mapping, offset, gfp_mask); if (ret == 0) { if (page_is_file_cache(page)) - lru_cache_add_file_tail(page, tail); + lru_cache_add_file(page); else lru_cache_add_anon(page); } return ret; } - -int add_to_page_cache_lru(struct page *page, struct address_space *mapping, - pgoff_t offset, gfp_t gfp_mask) -{ - return __add_to_page_cache_lru(page, mapping, offset, gfp_mask, 0); -} EXPORT_SYMBOL_GPL(add_to_page_cache_lru); #ifdef CONFIG_NUMA