+15
−23
+22
−0
Loading
mainline inclusion from mainline-v6.12-rc1 commit 1c8d48497525d77acfb7bdaaa246a887e754f379 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IBG3J8 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1c8d48497525d77acfb7bdaaa246a887e754f379 -------------------------------- In order to implement a kernel parameter similar to ``thp_anon=`` for shmem, we'll need the function ``get_order_from_str()``. Instead of duplicating the function, move the function to a shared header, in which both mm/shmem.c and mm/huge_memory.c will be able to use it. Link: https://lkml.kernel.org/r/20241101165719.1074234-5-mcanal@igalia.com Signed-off-by:Maíra Canal <mcanal@igalia.com> Reviewed-by:
Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Barry Song <baohua@kernel.org> Cc: David Hildenbrand <david@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Lance Yang <ioworker0@gmail.com> Cc: Ryan Roberts <ryan.roberts@arm.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Conflicts: mm/internal.h [Context conflicts in internal.h due to miss commit 4418c522f683] Signed-off-by:
Wang Lian <dev01404@linx-info.com> ---