Re: [PATCH 2/2] xfs: factor all the kmalloc-or-vmalloc fallback allocations

Mark Tinguely
2013-09-06T20:37:47Z

On 09/02/13 05:53, Dave Chinner wrote:
> From: Dave Chinner<dchinner@redhat.com>
>
> We have quite a few places now where we do:
>
> x = kmem_zalloc(large size)
> if (!x)
> x = kmem_zalloc_large(large size)
>
> and do a similar dance when freeing the memory. kmem_free() already
> does the correct freeing dance, and kmem_zalloc_large() is only ever
> called in these constructs, so just factor it all into
> kmem_zalloc_large() and kmem_free().
>
> Signed-off-by: Dave Chinner<dchinner@redhat.com>
> ---

Good start on the allocation changes.

Reviewed-by: Mark Tinguely <tinguely@sgi.com>