From: Omar Sandoval Date: Tue, 24 Feb 2015 10:47:04 +0000 (-0800) Subject: btrfs: handle ENOMEM in btrfs_alloc_tree_block X-Git-Tag: omap-for-v4.2/omap1-v2~46^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67b7859e9bfa0dcee5a8256932e393e98739be1b;p=pandora-kernel.git btrfs: handle ENOMEM in btrfs_alloc_tree_block This is one of the first places to give out when memory is tight. Handle it properly rather than with a BUG_ON. Also fix the comment about the return value, which is an ERR_PTR, not NULL, on error. Signed-off-by: Omar Sandoval Reviewed-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed