]> 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>
Fri, 28 Feb 2025 00:59:54 +0000 (16:59 -0800)
commitef6b5d46e479c95e088780cfc0833b50b199eb09
treea18d2bf713c39d02cd8f7ae798c1652e5b593559
parent9a7c141ac6c42aa4e21c22680b6acb11a604c088
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