]> Git Repo - linux.git/commit
swap: remove __swp_swapcount()
authorHuang Ying <[email protected]>
Mon, 29 May 2023 06:13:53 +0000 (14:13 +0800)
committerAndrew Morton <[email protected]>
Fri, 9 Jun 2023 23:25:49 +0000 (16:25 -0700)
commit3ecdeb0f876e91c4a7129ba2ba5baa530aa6c4f9
treefb774a8ead845b889170e7cbd50f6407402c30c9
parent46a774d3eae523fd9a1907ba90e9a116cd1c5ddc
swap: remove __swp_swapcount()

__swp_swapcount() just encloses the calling to swap_swapcount() with
get/put_swap_device().  It is called in __read_swap_cache_async() only,
which encloses the calling with get/put_swap_device() already.  So,
__read_swap_cache_async() can call swap_swapcount() directly.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: "Huang, Ying" <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Chris Li (Google) <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Tim Chen <[email protected]>
Cc: Yang Shi <[email protected]>
Cc: Yu Zhao <[email protected]>
Cc: Yosry Ahmed <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
include/linux/swap.h
mm/swap_state.c
mm/swapfile.c
This page took 0.049328 seconds and 4 git commands to generate.