]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: return ptr error from compression workspace
authorZach Brown <zab@redhat.com>
Fri, 9 May 2014 21:15:09 +0000 (17:15 -0400)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:22 +0000 (17:20 -0700)
commit066f20b1ae6f6c5981967fdfbcd79f9b47711ba6
treea4f6f0adf7068fbfe7f0f4bd066f09d045692902
parent6b5218fd742a17fc7048725b602552696ee38cc5
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 <zab@redhat.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/compression.c