]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/mm: allow allocate_area() to fail properly
authorPeter Xu <peterx@redhat.com>
Wed, 12 Apr 2023 16:43:45 +0000 (12:43 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:30:06 +0000 (16:30 -0700)
commitbe39fec4f97f01329ef48a5a3836f592f6a82766
tree3b3eee7b47cd28e960f6f5fa02cb61f3ecb13d77
parent0210c43ef623a3c35cafd7dbe25b1b3c1699e7e9
selftests/mm: allow allocate_area() to fail properly

Mostly to detect hugetlb allocation errors and skip hugetlb tests when
pages are not allocated.

Link: https://lkml.kernel.org/r/20230412164345.328659-1-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Dmitry Safonov <0x7f454c46@gmail.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/uffd-common.c
tools/testing/selftests/mm/uffd-common.h