mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gao Xiang <hsiangkao@linux.alibaba.com>
To: Bo Liu <liubo03@inspur.com>, xiang@kernel.org, chao@kernel.org
Cc: linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v8] erofs: support deflate decompress by using Intel QAT
Date: Thu, 22 May 2025 17:06:35 +0800	[thread overview]
Message-ID: <7fa71441-a5b0-40aa-aee8-8f251ea96f75@linux.alibaba.com> (raw)
In-Reply-To: <20250522084700.21354-1-liubo03@inspur.com>



On 2025/5/22 16:47, Bo Liu wrote:

...

> 
> diff --git a/Documentation/ABI/testing/sysfs-fs-erofs b/Documentation/ABI/testing/sysfs-fs-erofs
> index b134146d735b..4d024f043ea1 100644
> --- a/Documentation/ABI/testing/sysfs-fs-erofs
> +++ b/Documentation/ABI/testing/sysfs-fs-erofs
> @@ -27,3 +27,12 @@ Description:	Writing to this will drop compression-related caches,
>   		- 1 : invalidate cached compressed folios
>   		- 2 : drop in-memory pclusters
>   		- 3 : drop in-memory pclusters and cached compressed folios
> +
> +What:		/sys/fs/erofs/accel
> +Date:		May 2025
> +Contact:	"Bo Liu" <liubo03@inspur.com>
> +Description:	Used to set or show hardware accelerators in effect
> +		and multiple accelerators are separated by '\n'.
> +		Supported accelerator(s): qat_deflate.
> +		Disable all accelerators with an empty string (echo > accel).
> +

redundent new line.

...

> diff --git a/fs/erofs/decompressor_crypto.c b/fs/erofs/decompressor_crypto.c
> new file mode 100644
> index 000000000000..f4891d335792
> --- /dev/null
> +++ b/fs/erofs/decompressor_crypto.c
> @@ -0,0 +1,186 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +#include <linux/scatterlist.h>
> +#include <crypto/acompress.h>
> +
> +#include "compress.h"
> +
> +static int __z_erofs_crypto_decompress(struct z_erofs_decompress_req *rq,
> +				struct crypto_acomp *tfm)

Please check your tab setting (should be 8 spaces) and
rework it on my v4.

> +{

...

> +
> +int z_erofs_crypto_show_engines(char *buf, int size, char sep)
> +{
> +	struct z_erofs_crypto_engine *e;
> +	int alg, len = 0;
> +
> +	for (alg = 0; alg < Z_EROFS_COMPRESSION_MAX; ++alg) {
> +		for (e = z_erofs_crypto[alg]; e->crypto_name; ++e) {
> +			if (!e->tfm)
> +				continue;
> +			len += scnprintf(buf + len, size - len, "%s%c",
> +					 e->crypto_name, sep);
> +		}
> +	}
> +	return len;
> +}
> +

redundent new line.

Thanks,
Gao Xiang

> diff --git a/fs/erofs/decompressor_deflate.c b/fs/erofs/decompressor_deflate.c
> index c6908a487054..e4c9df9d7978 100644
> --- a/fs/erofs/decompressor_deflate.c
> +++ b/fs/erofs/decompressor_deflate.c

      reply	other threads:[~2025-05-22  9:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-22  8:47 Bo Liu
2025-05-22  9:06 ` Gao Xiang [this message]

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=7fa71441-a5b0-40aa-aee8-8f251ea96f75@linux.alibaba.com \
    --to=hsiangkao@linux.alibaba.com \
    --cc=chao@kernel.org \
    --cc=linux-erofs@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liubo03@inspur.com \
    --cc=xiang@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®