diff options
author | Zach Brown <zab@redhat.com> | 2014-05-09 23:15:08 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-10 02:20:21 +0200 |
commit | 60e1975acb48fc3d74a3422b21dde74c977ac3d5 (patch) | |
tree | eee37a1df3a53564e3d38d15d65d63c0a437e9c7 /Documentation/RCU/arrayRCU.txt | |
parent | btrfs: check_int: propagate out-of-memory error upwards (diff) | |
download | linux-60e1975acb48fc3d74a3422b21dde74c977ac3d5.tar.xz linux-60e1975acb48fc3d74a3422b21dde74c977ac3d5.zip |
btrfs: return errno instead of -1 from compression
The compression layer seems to have been built to return -1 and have
callers make up errors that make sense. This isn't great because there
are different errors that originate down in the compression layer.
Let's return real negative errnos from the compression layer so that
callers can pass on the error without having to guess what happened.
ENOMEM for allocation failure, E2BIG when compression exceeds the
uncompressed input, and EIO for everything else.
This helps a future path return errors from btrfs_decompress().
Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'Documentation/RCU/arrayRCU.txt')
0 files changed, 0 insertions, 0 deletions