mbox series

[00/15] A few cleanup patches for swap

Message ID 20220509131416.17553-1-linmiaohe@huawei.com (mailing list archive)
Headers show
Series A few cleanup patches for swap | expand

Message

Miaohe Lin May 9, 2022, 1:14 p.m. UTC
Hi everyone,
This series contains a few patches to fix the comment, remove unneeded
return value, use some helpers and so on. More details can be found in
the respective changelogs. Thanks!

Miaohe Lin (15):
  mm/swap: use helper is_swap_pte() in swap_vma_readahead
  mm/swap: use helper macro __ATTR_RW
  mm/swap: fold __swap_info_get() into its sole caller
  mm/swap: remove unneeded return value of free_swap_slot
  mm/swap: print bad swap offset entry in get_swap_device
  mm/swap: remove buggy cache->nr check in refill_swap_slots_cache
  mm/swap: remove unneeded p != NULL check in __swap_duplicate
  mm/swap: make page_swapcount and __lru_add_drain_all
  mm/swap: avoid calling swp_swap_info when try to check
    SWP_STABLE_WRITES
  mm/swap: break the loop if matching device is found
  mm/swap: add helper swap_offset_available()
  mm/swap: fix the obsolete comment for SWP_TYPE_SHIFT
  mm/swap: clean up the comment of find_next_to_unuse
  mm/swap: fix the comment of get_kernel_pages
  mm/swap: fix comment about swap extent

 include/linux/swap.h       | 11 +----
 include/linux/swap_slots.h |  2 +-
 include/linux/swapops.h    |  4 +-
 mm/memory.c                |  2 +-
 mm/swap.c                  |  6 +--
 mm/swap_slots.c            |  6 +--
 mm/swap_state.c            |  8 +---
 mm/swapfile.c              | 86 ++++++++++++++++----------------------
 8 files changed, 50 insertions(+), 75 deletions(-)

Comments

Andrew Morton May 17, 2022, 11:42 p.m. UTC | #1
On Mon, 9 May 2022 21:14:01 +0800 Miaohe Lin <linmiaohe@huawei.com> wrote:

> This series contains a few patches to fix the comment, remove unneeded
> return value, use some helpers and so on. More details can be found in
> the respective changelogs. 

After dropping [10/14] and with the four fixlets I just sent out, I
believe this series is ready to be moved into mm-stable.  Is there
anything outstanding?
Miaohe Lin May 18, 2022, 1:52 a.m. UTC | #2
On 2022/5/18 7:42, Andrew Morton wrote:
> On Mon, 9 May 2022 21:14:01 +0800 Miaohe Lin <linmiaohe@huawei.com> wrote:
> 
>> This series contains a few patches to fix the comment, remove unneeded
>> return value, use some helpers and so on. More details can be found in
>> the respective changelogs. 
> 
> After dropping [10/14] and with the four fixlets I just sent out, I
> believe this series is ready to be moved into mm-stable.  Is there

Sorry, I am focus on fixing the deadloop when swapin error occurs at swapoff recently.
Many thanks for doing this and above changes look good to me. :)

> anything outstanding?
> 

That's all. Thanks a lot!

> 
> .
>