diff options
author | Matthew Wilcox <willy@infradead.org> | 2017-11-29 08:32:39 -0500 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-10-21 10:46:37 -0400 |
commit | 4e17ec250fce0eba9b70a91c9622da2748a3ec50 (patch) | |
tree | 20e5811ad93f57e28afc506dcba223227866ee73 /mm/vmscan.c | |
parent | 8d93b41c09d1b74f376e3b9779eb3badeb550301 (diff) | |
download | lwn-4e17ec250fce0eba9b70a91c9622da2748a3ec50.tar.gz lwn-4e17ec250fce0eba9b70a91c9622da2748a3ec50.zip |
mm: Convert delete_from_swap_cache to XArray
Both callers of __delete_from_swap_cache have the swp_entry_t already,
so pass that in to make constructing the XA_STATE easier.
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index c7ce2c161225..80f731cf974e 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -923,7 +923,7 @@ static int __remove_mapping(struct address_space *mapping, struct page *page, if (PageSwapCache(page)) { swp_entry_t swap = { .val = page_private(page) }; mem_cgroup_swapout(page, swap); - __delete_from_swap_cache(page); + __delete_from_swap_cache(page, swap); xa_unlock_irqrestore(&mapping->i_pages, flags); put_swap_page(page, swap); } else { |