xfs: factor all the kmalloc-or-vmalloc fallback allocations
authorDave Chinner <dchinner@redhat.com>
Mon, 2 Sep 2013 10:53:00 +0000 (20:53 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 10 Sep 2013 18:57:03 +0000 (13:57 -0500)
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>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>

No differences found