diff options
author | 2022-01-14 14:06:51 -0800 | |
---|---|---|
committer | 2022-01-15 16:30:28 +0200 | |
commit | d08d2b62510e2407cf939e693aefd179dc114913 (patch) | |
tree | 7c4b1be61baf0bb47d1a547d1289342840534999 /include/linux/swap.h | |
parent | mm: remove the total_mapcount argument from page_trans_huge_map_swapcount() (diff) | |
download | linux-d08d2b62510e2407cf939e693aefd179dc114913.tar.gz linux-d08d2b62510e2407cf939e693aefd179dc114913.tar.bz2 linux-d08d2b62510e2407cf939e693aefd179dc114913.zip |
mm: remove the total_mapcount argument from page_trans_huge_mapcount()
All callers pass NULL, so we can stop calculating the value we would
store in it.
Link: https://lkml.kernel.org/r/20211220205943.456187-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index bdccbf1efa61..1d38d9475c4d 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -681,7 +681,7 @@ static inline int swp_swapcount(swp_entry_t entry) } #define reuse_swap_page(page) \ - (page_trans_huge_mapcount(page, NULL) == 1) + (page_trans_huge_mapcount(page) == 1) static inline int try_to_free_swap(struct page *page) { |