diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-05-19 23:08:50 +0200 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-05-19 23:08:50 +0200 |
commit | afba72b17139057aedf7eb2dfe5f6ea6700ab998 (patch) | |
tree | c3f8b925918848024b9294fee3f14f38072784c8 /mm/swap_slots.c | |
parent | mm/swap: use helper macro __ATTR_RW (diff) | |
download | linux-afba72b17139057aedf7eb2dfe5f6ea6700ab998.tar.xz linux-afba72b17139057aedf7eb2dfe5f6ea6700ab998.zip |
mm/swap: fold __swap_info_get() into its sole caller
Fold __swap_info_get() into its sole caller to make code more clear.
Minor readability improvement.
Link: https://lkml.kernel.org/r/20220509131416.17553-4-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Alistair Popple <apopple@nvidia.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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swap_slots.c')
0 files changed, 0 insertions, 0 deletions