From: Zach Brown Date: Fri, 9 May 2014 21:15:09 +0000 (-0400) Subject: btrfs: return ptr error from compression workspace X-Git-Tag: omap-for-v3.16/fixes-against-rc1~54^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=774bcb35f0d9ccb9adfd3a391328cc25523659fc;p=pandora-kernel.git btrfs: return ptr error from compression workspace The btrfs compression wrappers translated errors from workspace allocation to either -ENOMEM or -1. The compression type workspace allocators are already returning a ERR_PTR(-ENOMEM). Just return that and get rid of the magical -1. This helps a future patch return errors from the compression wrappers. Signed-off-by: Zach Brown Reviewed-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed