Re: [PATCH 2/2] fs: kill add_to_page_cache_locked()

2020-10-19 Thread Matthew Wilcox
On Mon, Oct 19, 2020 at 02:59:11PM -0400, Kent Overstreet wrote: > @@ -885,29 +886,30 @@ static int __add_to_page_cache_locked(struct page *page, > page->mapping = NULL; > /* Leave page->index set: truncation relies upon it */ > put_page(page); > + __ClearPageLocked(page); >

[PATCH 2/2] fs: kill add_to_page_cache_locked()

2020-10-19 Thread Kent Overstreet
No longer has any users, so remove it. Signed-off-by: Kent Overstreet --- include/linux/pagemap.h | 20 ++--- mm/filemap.c| 62 - 2 files changed, 32 insertions(+), 50 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/p