* [PATCH] erofs: remove the pagepool parameter from z_erofs_shifted_transform()
@ 2021-08-31 10:32 Yue Hu
2021-09-03 3:06 ` Gao Xiang
0 siblings, 1 reply; 2+ messages in thread
From: Yue Hu @ 2021-08-31 10:32 UTC (permalink / raw)
To: xiang, chao, linux-erofs; +Cc: huyue2, linux-kernel, zbestahu
From: Yue Hu <huyue2@yulong.com>
We don't use the pagepool for plain format, remove it.
Signed-off-by: Yue Hu <huyue2@yulong.com>
---
fs/erofs/decompressor.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/erofs/decompressor.c b/fs/erofs/decompressor.c
index a5bc4b1..8f50a36 100644
--- a/fs/erofs/decompressor.c
+++ b/fs/erofs/decompressor.c
@@ -360,8 +360,7 @@ static int z_erofs_decompress_generic(struct z_erofs_decompress_req *rq,
return ret;
}
-static int z_erofs_shifted_transform(const struct z_erofs_decompress_req *rq,
- struct list_head *pagepool)
+static int z_erofs_shifted_transform(const struct z_erofs_decompress_req *rq)
{
const unsigned int nrpages_out =
PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT;
@@ -403,6 +402,6 @@ int z_erofs_decompress(struct z_erofs_decompress_req *rq,
struct list_head *pagepool)
{
if (rq->alg == Z_EROFS_COMPRESSION_SHIFTED)
- return z_erofs_shifted_transform(rq, pagepool);
+ return z_erofs_shifted_transform(rq);
return z_erofs_decompress_generic(rq, pagepool);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] erofs: remove the pagepool parameter from z_erofs_shifted_transform()
2021-08-31 10:32 [PATCH] erofs: remove the pagepool parameter from z_erofs_shifted_transform() Yue Hu
@ 2021-09-03 3:06 ` Gao Xiang
0 siblings, 0 replies; 2+ messages in thread
From: Gao Xiang @ 2021-09-03 3:06 UTC (permalink / raw)
To: Yue Hu, Chao Yu; +Cc: xiang, huyue2, linux-erofs, linux-kernel, zbestahu
Hi Yue,
On Tue, Aug 31, 2021 at 06:32:04PM +0800, Yue Hu wrote:
> From: Yue Hu <huyue2@yulong.com>
>
> We don't use the pagepool for plain format, remove it.
In my LZMA patchset, I'll rearrange such interface to make LZMA
integration easier:
https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git/commit/?h=erofs/lzma&id=3fab9044a4fe9358e95e16780831640caf3de10b
This cleanup patch does no harm to that one, yet I think it has little
real impact (especially applying the patch above)... So I'd like to
hear Chao's suggestion about this as well. I'm fine in either ways.
(p.s. we are in 5.15 merge window, I will set up a new dev branch after
-rc1 is out.)
Thanks,
Gao Xiang
>
> Signed-off-by: Yue Hu <huyue2@yulong.com>
> ---
> fs/erofs/decompressor.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/fs/erofs/decompressor.c b/fs/erofs/decompressor.c
> index a5bc4b1..8f50a36 100644
> --- a/fs/erofs/decompressor.c
> +++ b/fs/erofs/decompressor.c
> @@ -360,8 +360,7 @@ static int z_erofs_decompress_generic(struct z_erofs_decompress_req *rq,
> return ret;
> }
>
> -static int z_erofs_shifted_transform(const struct z_erofs_decompress_req *rq,
> - struct list_head *pagepool)
> +static int z_erofs_shifted_transform(const struct z_erofs_decompress_req *rq)
> {
> const unsigned int nrpages_out =
> PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT;
> @@ -403,6 +402,6 @@ int z_erofs_decompress(struct z_erofs_decompress_req *rq,
> struct list_head *pagepool)
> {
> if (rq->alg == Z_EROFS_COMPRESSION_SHIFTED)
> - return z_erofs_shifted_transform(rq, pagepool);
> + return z_erofs_shifted_transform(rq);
> return z_erofs_decompress_generic(rq, pagepool);
> }
> --
> 1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-03 3:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31 10:32 [PATCH] erofs: remove the pagepool parameter from z_erofs_shifted_transform() Yue Hu
2021-09-03 3:06 ` Gao Xiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).