Skip to content

clean up some functions in mm/swap_slots.c

Zhen Lei linux-mm lkml 1 version Applied

Status from this message: [merged] mm-swap-remove-redundant-check-for-swap_slot_cache_initialized.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/swap: simplify alloc_swap_slot_cache()mm/swap_slots.c+9 -91 replyApplied
2/3mm/swap: simplify enable_swap_slots_cache()mm/swap_slots.c+10 -121 replyApplied
3/3mm/swap: remove redundant check for swap_slot_cache_initializedmm/swap_slots.c+2 -31 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchTim Chen
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] clean up some functions in mm/swap_slots.c

When I studied the code of mm/swap_slots.c, I found some places can be improved.

Zhen Lei (3):
mm/swap: simplify alloc_swap_slot_cache()
mm/swap: simplify enable_swap_slots_cache()
mm/swap: remove redundant check for swap_slot_cache_initialized

 mm/swap_slots.c | 45 +++++++++++++++++++++------------------------
 1 file changed, 21 insertions(+), 24 deletions(-)
Signature · 1 line
2.26.0.106.g9fadedd