diff options
author | Huang Ying <ying.huang@intel.com> | 2023-05-29 14:13:52 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-06-09 16:25:49 -0700 |
commit | 46a774d3eae523fd9a1907ba90e9a116cd1c5ddc (patch) | |
tree | 60147f54fc30d7d7bb9bb77b7276bd6cb18bcbd6 /include | |
parent | f9f956b550b8ce6fb902af9f29ba31b3e0fd052d (diff) | |
download | lwn-46a774d3eae523fd9a1907ba90e9a116cd1c5ddc.tar.gz lwn-46a774d3eae523fd9a1907ba90e9a116cd1c5ddc.zip |
swap, __read_swap_cache_async(): enlarge get/put_swap_device protection range
This makes the function a little easier to be understood because we don't
need to consider swapoff. And this makes it possible to remove
get/put_swap_device() calling in some functions called by
__read_swap_cache_async().
Link: https://lkml.kernel.org/r/20230529061355.125791-3-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 'include')
0 files changed, 0 insertions, 0 deletions