aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/mm/page_frag/page_frag_test.c
diff options
context:
space:
mode:
authorYunsheng Lin <[email protected]>2024-10-28 11:53:39 +0000
committerJakub Kicinski <[email protected]>2024-11-11 18:56:27 +0000
commit3d18dfe69ce46f106af327736d2261d7e3ee81c0 (patch)
tree508012ac2ca4270f28b0eee0cceed9959c589dfd /tools/testing/selftests/mm/page_frag/page_frag_test.c
parentmm: page_frag: use initial zero offset for page_frag_alloc_align() (diff)
downloadkernel-3d18dfe69ce46f106af327736d2261d7e3ee81c0.tar.gz
kernel-3d18dfe69ce46f106af327736d2261d7e3ee81c0.zip
mm: page_frag: avoid caller accessing 'page_frag_cache' directly
Use appropriate frag_page API instead of caller accessing 'page_frag_cache' directly. CC: Andrew Morton <[email protected]> CC: Linux-MM <[email protected]> Signed-off-by: Yunsheng Lin <[email protected]> Reviewed-by: Alexander Duyck <[email protected]> Acked-by: Chuck Lever <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/mm/page_frag/page_frag_test.c')
-rw-r--r--tools/testing/selftests/mm/page_frag/page_frag_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/mm/page_frag/page_frag_test.c b/tools/testing/selftests/mm/page_frag/page_frag_test.c
index 13c44133e009..e806c1866e36 100644
--- a/tools/testing/selftests/mm/page_frag/page_frag_test.c
+++ b/tools/testing/selftests/mm/page_frag/page_frag_test.c
@@ -126,7 +126,7 @@ static int __init page_frag_test_init(void)
u64 duration;
int ret;
- test_nc.va = NULL;
+ page_frag_cache_init(&test_nc);
atomic_set(&nthreads, 2);
init_completion(&wait);