diff options
| author | Zhen Lei <[email protected]> | 2020-08-06 23:20:08 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-08-07 11:33:23 -0700 |
| commit | d69a9575f57ef742df599f1186dcbfb28af0f846 (patch) | |
| tree | 95d44b130d6800e2b9b83900b3b9709ffe3b5819 /tools/perf/scripts/python | |
| parent | f90eae2a0f8ec43081c2d590004da9dd55a64791 (diff) | |
mm/swap_slots.c: simplify enable_swap_slots_cache()
Whether swap_slot_cache_initialized is true or false,
__reenable_swap_slots_cache() is always called. To make this meaning
clear, leave only one call to __reenable_swap_slots_cache(). This also
make it clearer what extra needs be done when swap_slot_cache_initialized
is false.
No functional change.
Signed-off-by: Zhen Lei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Acked-by: Tim Chen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions