mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
maple_tree: change two GFP flags in tests
The GFP flags in two tests are obviously incorrect. Make the tests correctly run by updating the GFP flags. Link: https://lore.kernel.org/all/d9cbb89faa5bdb71d451781d214a51ce8923a83e.camel@perches.com/ Link: https://lore.kernel.org/20260821192627.4085470-17-liam@infradead.org Signed-off-by: Liam R. Howlett (Oracle) <liam@infradead.org> Reported-by: Joe Perches <joe@perches.com> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: Breno Leitao <leitao@debian.org> Cc: Chris Mason <clm@meta.com> Cc: Chuck Lever <cel@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rik van Riel <riel@surriel.com> Cc: Waiman Long <longman@redhat.com> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
ee2487d9ba
commit
18d4f8e6e6
|
|
@ -35234,7 +35234,7 @@ static noinline void __init check_prealloc(struct maple_tree *mt)
|
|||
mt_set_non_kernel(1);
|
||||
/* Spanning store */
|
||||
mas_set_range(&mas, 1, 100);
|
||||
MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL & GFP_NOWAIT) == 0);
|
||||
MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_NOWAIT) == 0);
|
||||
allocated = mas_allocated(&mas);
|
||||
height = mas_mt_height(&mas);
|
||||
MT_BUG_ON(mt, allocated != 0);
|
||||
|
|
@ -35257,7 +35257,7 @@ static noinline void __init check_prealloc(struct maple_tree *mt)
|
|||
MT_BUG_ON(mt, mas_allocated(&mas) != 0);
|
||||
mas_set_range(&mas, 0, 200);
|
||||
mt_set_non_kernel(1);
|
||||
MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL & GFP_NOWAIT) == 0);
|
||||
MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_NOWAIT) == 0);
|
||||
allocated = mas_allocated(&mas);
|
||||
height = mas_mt_height(&mas);
|
||||
MT_BUG_ON(mt, allocated != 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user