]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: shmem: change the return value of shmem_find_swap_entries()
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Fri, 7 Feb 2025 09:44:20 +0000 (17:44 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Feb 2025 00:59:54 +0000 (16:59 -0800)
commit9a7c141ac6c42aa4e21c22680b6acb11a604c088
tree3971172e3c7d62ce719755d995f99cc4bc932fcc
parentbb756b05c2de60cf0fd26cf182a2b331dc3160e8
mm: shmem: change the return value of shmem_find_swap_entries()

The shmem_find_swap_entries() originally returned the index corresponding
to the swap entry, but no callers used this return value.  It should
return the number of entries that were found like other functions, which
can be used by the callers.

No functional changes.

Link: https://lkml.kernel.org/r/070489b5946b8379b2a2d25f78115cef167cd145.1738918357.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shmem.c