Miaohe Lin 4b9ae8426c 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>
2022-05-19 14:08:52 -07:00
..
2022-03-24 19:06:45 -07:00
2022-03-22 15:57:01 -07:00
2022-05-13 07:20:09 -07:00
2022-05-13 07:20:09 -07:00
2022-02-14 19:51:47 +01:00
2022-01-15 16:30:28 +02:00
2022-03-23 18:03:08 -07:00
2022-05-13 07:20:15 -07:00
2022-05-13 07:20:09 -07:00
2022-03-22 17:03:12 -07:00
2021-05-07 00:26:35 -07:00
2022-04-01 14:40:42 -04:00
2022-03-22 18:26:56 -07:00
2022-05-09 18:20:47 -07:00
2022-04-28 23:16:16 -07:00
2022-01-15 16:30:31 +02:00
2022-05-09 18:20:47 -07:00