lkml.org 
[lkml]   [2023]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 07/29] selftests/mm: Merge default_huge_page_size() into one
On 03/30/23 12:07, Peter Xu wrote:
> There're already 3 same definitions of the three functions. Move it into
> vm_util.[ch].
>
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
> tools/testing/selftests/mm/hugetlb-madvise.c | 25 +-------------------
> tools/testing/selftests/mm/thuge-gen.c | 19 +--------------
> tools/testing/selftests/mm/userfaultfd.c | 24 -------------------
> tools/testing/selftests/mm/vm_util.c | 21 ++++++++++++++++
> tools/testing/selftests/mm/vm_util.h | 1 +
> 5 files changed, 24 insertions(+), 66 deletions(-)

Thanks!

Some of those copies were make by me. Sorry.

Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>

BTW - The same code (even with '... copied from mlock2-tests.c) resides
in the selftests/memfd directory. I did that as well. :( Suspect it is OK
to leave the copy there. But, it does make me wonder why memfd is not in
the mm directory?
--
Mike Kravetz

\
 
 \ /
  Last update: 2023-03-31 20:16    [W:0.456 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site