On Fri, May 09, 2014 at 05:15:08PM -0400, Zach Brown wrote:
> --- a/fs/btrfs/zlib.c
> +++ b/fs/btrfs/zlib.c
> @@ -136,7 +136,7 @@ static int zlib_compress_pages(struct list_head *ws,
>               if (workspace->def_strm.total_in > 8192 &&
>                   workspace->def_strm.total_in <
>                   workspace->def_strm.total_out) {
> -                     ret = -1;
> +                     ret = -EIO;

E2BIG, the comment above the code says

  /* we're making it bigger, give up */

and the error code is consistent with lzo.c

The rest is ok.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to