Re: [RFC PATCH 10/11] mm/filemap: Add folio_add_to_page_cache

2020-12-11 Thread Nikolay Borisov
On 8.12.20 г. 21:46 ч., Matthew Wilcox (Oracle) wrote: > Pages being added to the page cache should already be folios, so > turn add_to_page_cache_lru() into a wrapper. Saves hundreds of > bytes of text. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > include/linux/pagemap.h | 13

[RFC PATCH 10/11] mm/filemap: Add folio_add_to_page_cache

2020-12-08 Thread Matthew Wilcox (Oracle)
Pages being added to the page cache should already be folios, so turn add_to_page_cache_lru() into a wrapper. Saves hundreds of bytes of text. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 13 +++-- mm/filemap.c| 62