summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2023-05-29 14:13:53 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-06-09 16:25:49 -0700
commit3ecdeb0f876e91c4a7129ba2ba5baa530aa6c4f9 (patch)
treefb774a8ead845b889170e7cbd50f6407402c30c9 /init
parent46a774d3eae523fd9a1907ba90e9a116cd1c5ddc (diff)
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 'init')
0 files changed, 0 insertions, 0 deletions