]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: shmem: factor out the within_size logic into a new helper
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Fri, 7 Feb 2025 09:44:21 +0000 (17:44 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:45 +0000 (21:49 -0800)
commit47e55c755a627f4bc5c93e218ef07e1d619f0b03
treec56bd4bc44757be0802d2e1155ff5fb28b0754c0
parent8d4151db97dac3f8c1e2338b42b5b59b1cbf70d8
mm: shmem: factor out the within_size logic into a new helper

Factor out the within_size logic into a new helper to remove duplicate
code.

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