]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use E2BIG instead of EIO if compression does not help
authorDavid Sterba <dsterba@suse.cz>
Fri, 20 Jun 2014 09:43:20 +0000 (11:43 +0200)
committerChris Mason <clm@fb.com>
Thu, 3 Jul 2014 14:04:13 +0000 (07:04 -0700)
commitaf9dbb91896bc7f60c36fa35d97322ecaf92ea9d
tree22372bc71d922d5ba38073dab2283d0ca822eec4
parent12d4ae48ae08ada90769678fbad78e3ad53dc95e
btrfs: use E2BIG instead of EIO if compression does not help

Return codes got updated in 6b5218fd742a17fc7048725b602552696ee38cc5
(btrfs: return errno instead of -1 from compression)
lzo wrapper returns E2BIG in this case, do the same for zlib.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/zlib.c