From: Dave Chinner Date: Mon, 2 Sep 2013 10:53:00 +0000 (+1000) Subject: xfs: factor all the kmalloc-or-vmalloc fallback allocations X-Git-Tag: v3.12-rc1~22^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdd3cceef46f2c18c618669cfae5c0f47d6982f9;p=pandora-kernel.git xfs: factor all the kmalloc-or-vmalloc fallback allocations 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 Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- Reading git-diff-tree failed