diff options
author | 2023-05-29 14:13:53 +0800 | |
---|---|---|
committer | 2023-06-09 16:25:49 -0700 | |
commit | 3ecdeb0f876e91c4a7129ba2ba5baa530aa6c4f9 (patch) | |
tree | fb774a8ead845b889170e7cbd50f6407402c30c9 /mm/page_alloc.c | |
parent | swap, __read_swap_cache_async(): enlarge get/put_swap_device protection range (diff) | |
download | wireguard-linux-3ecdeb0f876e91c4a7129ba2ba5baa530aa6c4f9.tar.xz wireguard-linux-3ecdeb0f876e91c4a7129ba2ba5baa530aa6c4f9.zip |
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/20230529061355.125791-4-ying.huang@intel.com
Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Chris Li (Google) <chrisl@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Yu Zhao <yuzhao@google.com>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions