Re: [PATCH mm] mm/vmalloc: repair warn_alloc()s in __vmalloc_area_node()

From: Christoph Hellwig
Date: Wed Sep 15 2021 - 09:52:07 EST


On Wed, Sep 15, 2021 at 02:43:10PM +0300, Vasily Averin wrote:
> Commit f255935b9767 ("mm: cleanup the gfp_mask handling in
> __vmalloc_area_node") added __GFP_NOWARN to gfp_mask unconditionally
> however it disabled all output inside warn_alloc() call.
> This patch saves original gfp_mask and provides it to all warn_alloc() calls.
>
> Fixes: f255935b9767 ("mm: cleanup the gfp_mask handling in __vmalloc_area_node")
> Cc: Christoph Hellwig <hch@xxxxxx>
>
> Signed-off-by: Vasily Averin <vvs@xxxxxxxxxxxxx>

Looks fine, thanks.

Reviewed-by: Christoph Hellwig <hch@xxxxxx>