[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a6d9887f-1ff0-fd43-85ff-e6fee87bbe84@kernel.org>
Date: Wed, 5 Apr 2023 10:42:02 +0800
From: Chao Yu <chao@...nel.org>
To: Yangtao Li <frank.li@...o.com>, Jaegeuk Kim <jaegeuk@...nel.org>
Cc: linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] f2fs: merge lz4hc_compress_pages() to
lz4_compress_pages()
On 2023/3/31 0:49, Yangtao Li wrote:
> +#ifdef CONFIG_F2FS_FS_LZ4HC
> + unsigned char level = F2FS_I(cc->inode)->i_compress_level;
>
> if (level)
> len = LZ4_compress_HC(cc->rbuf, cc->cbuf->cdata, cc->rlen,
> cc->clen, level, cc->private);
> else
[snip]
> #endif
[snip]
> + len = LZ4_compress_default(cc->rbuf, cc->cbuf->cdata, cc->rlen,
It's weired that whole else xxx; statement is split by #endif.
What about?
unsigned char level = 0;
#if
...
#endif
if (!level)
len = LZ4_compress_default()
Thanks,
> cc->clen, cc->private);
> if (!len)
> return -EAGAIN;
Powered by blists - more mailing lists