path: root/mm/workingset.c
diff options
authorAndrey Ryabinin <>2019-03-05 15:49:35 -0800
committerLinus Torvalds <>2019-03-05 21:07:21 -0800
commita7ca12f9d905e7437dd3beb9cbb8e85bc2b991f4 (patch)
treebd6904eb8fef29a0bdeac7dc2e50449158ab58b9 /mm/workingset.c
parent960087445cd263c30ecc32b9e218887a349597ce (diff)
mm/workingset: remove unused @mapping argument in workingset_eviction()
workingset_eviction() doesn't use and never did use the @mapping argument. Remove it. Link: Signed-off-by: Andrey Ryabinin <> Acked-by: Johannes Weiner <> Acked-by: Rik van Riel <> Acked-by: Vlastimil Babka <> Acked-by: Mel Gorman <> Cc: Michal Hocko <> Cc: William Kucharski <> Cc: John Hubbard <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/workingset.c')
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/workingset.c b/mm/workingset.c
index dcb994f2acc2..0bedf67502d5 100644
--- a/mm/workingset.c
+++ b/mm/workingset.c
@@ -215,13 +215,12 @@ static void unpack_shadow(void *shadow, int *memcgidp, pg_data_t **pgdat,
* workingset_eviction - note the eviction of a page from memory
- * @mapping: address space the page was backing
* @page: the page being evicted
- * Returns a shadow entry to be stored in @mapping->i_pages in place
+ * Returns a shadow entry to be stored in @page->mapping->i_pages in place
* of the evicted @page so that a later refault can be detected.
-void *workingset_eviction(struct address_space *mapping, struct page *page)
+void *workingset_eviction(struct page *page)
struct pglist_data *pgdat = page_pgdat(page);
struct mem_cgroup *memcg = page_memcg(page);