diff options
author | Alex Shi <alex.shi@linux.alibaba.com> | 2021-02-24 23:08:01 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-25 00:38:33 +0300 |
commit | c2135f7c570bc274035834848d9bf46ea89ba763 (patch) | |
tree | a0536dce59674a2fc8c9a13dbb644cc43a52f2d4 /include/linux/pm_wakeup.h | |
parent | 7ecc956551f8a66618f71838c790a9b0b4f9ca10 (diff) | |
download | linux-c2135f7c570bc274035834848d9bf46ea89ba763.tar.xz |
mm/vmscan: __isolate_lru_page_prepare() cleanup
The function just returns 2 results, so using a 'switch' to deal with its
result is unnecessary. Also simplify it to a bool func as Vlastimil
suggested.
Also remove 'goto' by reusing list_move(), and take Matthew Wilcox's
suggestion to update comments in function.
Link: https://lkml.kernel.org/r/728874d7-2d93-4049-68c1-dcc3b2d52ccd@linux.alibaba.com
Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Yu Zhao <yuzhao@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/pm_wakeup.h')
0 files changed, 0 insertions, 0 deletions