[PATCH 2/2] xfs: factor all the kmalloc-or-vmalloc fallback allocations
Mark Tinguely
tinguely at sgi.com
Fri Sep 6 15:37:42 CDT 2013
On 09/02/13 05:53, Dave Chinner wrote:
> From: Dave Chinner<dchinner at 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 at redhat.com>
> ---
Good start on the allocation changes.
Reviewed-by: Mark Tinguely <tinguely at sgi.com>
More information about the xfs
mailing list