sparc64: Fix gfp_flags setting in tsb_grow().
David Miller
maintainerPATCH 1/3 sparc64: Fix gfp_flags setting in tsb_grow().
We should "|= more_flags" rather than "= more_flags".
Reported-by David Rientjes <[email protected]>
Signed-off-by David S. Miller <[email protected]>
--- arch/sparc/mm/tsb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/mm/tsb.c +1 -1
@@ -314,7 +314,7 @@ void tsb_grow(struct mm_struct *mm, unsigned long tsb_index, unsigned long rss) retry_tsb_alloc: gfp_flags =GFP_KERNEL ;if (new_size > (PAGE_SIZE *2 )) - gfp_flags = __GFP_NOWARN | __GFP_NORETRY; + gfp_flags |= __GFP_NOWARN | __GFP_NORETRY; new_tsb =kmem_cache_alloc_node (tsb_caches[new_cache_index], gfp_flags,numa_node_id ());
Signature · 1 line
1.8.1.2
Quoted 5 lines · David Miller
We should "|=
more_flags" rather than "=more_flags".Reported-by David Rientjes <[email protected]>Signed-off-by David S. Miller <[email protected]>
Acked-by David Rientjes <[email protected]>