Btrfs: lzo: compressed data size must be less then input size
authorTimofey Titovets <nefelim4ag@gmail.com>
Mon, 29 May 2017 23:18:04 +0000 (02:18 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:01 +0000 (18:26 +0200)
commit1e9d7291e50178699b87656488912eba235c7679
tree5dd825dae958357d95f42b3ea839dd820c5a23b1
parent054ec2f626ed5bc1633addfabb1d8de1b56f949d
Btrfs: lzo: compressed data size must be less then input size

Logic already skips if compression makes data bigger, let's sync lzo
with zlib and also return error if compressed size is equal to
input size.

Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/lzo.c