aboutsummaryrefslogtreecommitdiffstats
path: root/lib/alloc_tag.c
diff options
context:
space:
mode:
authorVivek Kasireddy <[email protected]>2025-06-18 05:30:55 +0000
committerAndrew Morton <[email protected]>2025-07-10 05:42:15 +0000
commitcf34cfbf1784be7ce9f22789aa157535eff2195f (patch)
tree340a6487071183e8051936020b949c6f2ac9b927 /lib/alloc_tag.c
parentmm/memfd: reserve hugetlb folios before allocation (diff)
downloadkernel-cf34cfbf1784be7ce9f22789aa157535eff2195f.tar.gz
kernel-cf34cfbf1784be7ce9f22789aa157535eff2195f.zip
selftests/udmabuf: add a test to pin first before writing to memfd
Unlike the existing tests, this new test will create a memfd (backed by hugetlb) and pin the folios in it (a small subset) before writing/ populating it with data. This is a valid use-case that invokes the memfd_alloc_folio() kernel API and is expected to work unless there aren't enough hugetlb folios to satisfy the allocation needs. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Vivek Kasireddy <[email protected]> Cc: Gerd Hoffmann <[email protected]> Cc: Steve Sistare <[email protected]> Cc: Muchun Song <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Oscar Salvador <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/alloc_tag.c')
0 files changed, 0 insertions, 0 deletions