From: Chao Yu <chao@kernel.org>
To: Gao Xiang <hsiangkao@linux.alibaba.com>, linux-erofs@lists.ozlabs.org
Cc: Yue Hu <huyue2@yulong.com>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 1/5] erofs: tidy up z_erofs_lz4_decompress
Date: Mon, 27 Dec 2021 10:08:54 +0800 [thread overview]
Message-ID: <c3fd4833-2483-f77e-fb79-42871e2d4219@kernel.org> (raw)
In-Reply-To: <20211225070626.74080-2-hsiangkao@linux.alibaba.com>
On 2021/12/25 15:06, Gao Xiang wrote:
> To prepare for the upcoming ztailpacking feature and further
> cleanups, introduce a unique z_erofs_lz4_decompress_ctx to keep
> the context, including inpages, outpages and oend, which are
> frequently used by the lz4 decompressor.
>
> No logic changes.
>
> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
> ---
> fs/erofs/decompressor.c | 80 +++++++++++++++++++++--------------------
> 1 file changed, 41 insertions(+), 39 deletions(-)
>
> diff --git a/fs/erofs/decompressor.c b/fs/erofs/decompressor.c
> index c373a199c407..d1282a8b709e 100644
> --- a/fs/erofs/decompressor.c
> +++ b/fs/erofs/decompressor.c
> @@ -16,6 +16,11 @@
> #define LZ4_DECOMPRESS_INPLACE_MARGIN(srcsize) (((srcsize) >> 8) + 32)
> #endif
>
> +struct z_erofs_lz4_decompress_ctx {
> + struct z_erofs_decompress_req *rq;
> + unsigned int inpages, outpages, oend;
> +};
> +
Could you please comment a bit about fields of structure
z_erofs_lz4_decompress_ctx?
Otherwise, the patch looks good to me.
Reviewed-by: Chao Yu <chao@kernel.org>
Thanks,
WARNING: multiple messages have this Message-ID (diff)
From: Chao Yu <chao@kernel.org>
To: Gao Xiang <hsiangkao@linux.alibaba.com>, linux-erofs@lists.ozlabs.org
Cc: LKML <linux-kernel@vger.kernel.org>, Yue Hu <huyue2@yulong.com>
Subject: Re: [PATCH v3 1/5] erofs: tidy up z_erofs_lz4_decompress
Date: Mon, 27 Dec 2021 10:08:54 +0800 [thread overview]
Message-ID: <c3fd4833-2483-f77e-fb79-42871e2d4219@kernel.org> (raw)
In-Reply-To: <20211225070626.74080-2-hsiangkao@linux.alibaba.com>
On 2021/12/25 15:06, Gao Xiang wrote:
> To prepare for the upcoming ztailpacking feature and further
> cleanups, introduce a unique z_erofs_lz4_decompress_ctx to keep
> the context, including inpages, outpages and oend, which are
> frequently used by the lz4 decompressor.
>
> No logic changes.
>
> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
> ---
> fs/erofs/decompressor.c | 80 +++++++++++++++++++++--------------------
> 1 file changed, 41 insertions(+), 39 deletions(-)
>
> diff --git a/fs/erofs/decompressor.c b/fs/erofs/decompressor.c
> index c373a199c407..d1282a8b709e 100644
> --- a/fs/erofs/decompressor.c
> +++ b/fs/erofs/decompressor.c
> @@ -16,6 +16,11 @@
> #define LZ4_DECOMPRESS_INPLACE_MARGIN(srcsize) (((srcsize) >> 8) + 32)
> #endif
>
> +struct z_erofs_lz4_decompress_ctx {
> + struct z_erofs_decompress_req *rq;
> + unsigned int inpages, outpages, oend;
> +};
> +
Could you please comment a bit about fields of structure
z_erofs_lz4_decompress_ctx?
Otherwise, the patch looks good to me.
Reviewed-by: Chao Yu <chao@kernel.org>
Thanks,
next prev parent reply other threads:[~2021-12-27 2:09 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-25 7:06 [PATCH v3 0/5] erofs: support tail-packing inline compressed data Gao Xiang
2021-12-25 7:06 ` Gao Xiang
2021-12-25 7:06 ` [PATCH v3 1/5] erofs: tidy up z_erofs_lz4_decompress Gao Xiang
2021-12-25 7:06 ` Gao Xiang
2021-12-27 2:08 ` Chao Yu [this message]
2021-12-27 2:08 ` Chao Yu
2021-12-27 2:21 ` Gao Xiang
2021-12-27 2:21 ` Gao Xiang
2021-12-25 7:06 ` [PATCH v3 2/5] erofs: introduce z_erofs_fixup_insize Gao Xiang
2021-12-25 7:06 ` Gao Xiang
2021-12-27 2:26 ` Chao Yu
2021-12-27 2:26 ` Chao Yu
2021-12-25 7:06 ` [PATCH v3 3/5] erofs: support unaligned data decompression Gao Xiang
2021-12-25 7:06 ` Gao Xiang
2021-12-25 7:06 ` [PATCH v3 4/5] erofs: support inline " Gao Xiang
2021-12-25 7:06 ` Gao Xiang
2021-12-27 8:18 ` Yue Hu
2021-12-27 8:18 ` Yue Hu
2021-12-27 9:26 ` Gao Xiang
2021-12-27 9:26 ` Gao Xiang
2021-12-27 9:36 ` Yue Hu
2021-12-27 9:36 ` Yue Hu
2021-12-25 7:06 ` [PATCH v3 5/5] erofs: add on-disk compressed tail-packing inline support Gao Xiang
2021-12-25 7:06 ` Gao Xiang
2021-12-27 7:23 ` Yue Hu
2021-12-27 7:23 ` Yue Hu
2021-12-27 9:20 ` Gao Xiang
2021-12-27 9:20 ` Gao Xiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3fd4833-2483-f77e-fb79-42871e2d4219@kernel.org \
--to=chao@kernel.org \
--cc=hsiangkao@linux.alibaba.com \
--cc=huyue2@yulong.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.