From 774bcb35f0d9ccb9adfd3a391328cc25523659fc Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Fri, 9 May 2014 17:15:09 -0400 Subject: [PATCH] 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-format-patch failed