diff options
author | 2022-05-19 14:08:52 -0700 | |
---|---|---|
committer | 2022-05-19 14:08:52 -0700 | |
commit | 4b9ae8426cb4a9160ae41bc968391f499feece7e (patch) | |
tree | 3c40bec41e874999626977bb843bc00cb91bbc5b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/swap: avoid calling swp_swap_info when try to check SWP_STABLE_WRITES (diff) | |
download | linux-dev-4b9ae8426cb4a9160ae41bc968391f499feece7e.tar.xz linux-dev-4b9ae8426cb4a9160ae41bc968391f499feece7e.zip |
mm/swap: add helper swap_offset_available()
Add helper swap_offset_available() to remove some duplicated codes. Minor
readability improvement.
[akpm@linux-foundation.org: s/swap_offset_available/swap_offset_available_and_locked/, per Neil]
Link: https://lkml.kernel.org/r/20220509131416.17553-12-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Naoya Horiguchi <naoya.horiguchi@nec.com>
Cc: NeilBrown <neilb@suse.de>
Cc: Peter Xu <peterx@redhat.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions