[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <82697910-2359-b96c-e454-e38abd8c0a7a@huawei.com>
Date: Wed, 19 Mar 2025 20:28:15 +0800
From: Zhihao Cheng <chengzhihao1@...wei.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
CC: Linux Crypto Mailing List <linux-crypto@...r.kernel.org>, Richard
Weinberger <richard@....at>, <linux-mtd@...ts.infradead.org>, "Rafael J.
Wysocki" <rafael@...nel.org>, Pavel Machek <pavel@....cz>,
<linux-pm@...r.kernel.org>, Steffen Klassert <steffen.klassert@...unet.com>,
<netdev@...r.kernel.org>
Subject: Re: [v5 PATCH 14/14] ubifs: Pass folios to acomp
在 2025/3/19 17:46, Herbert Xu 写道:
> On Wed, Mar 19, 2025 at 05:44:17PM +0800, Zhihao Cheng wrote:
>>
>> Tested-by: Zhihao Cheng <chengzhihao1@...wei.com> # For xfstests
>
> Thank you for testing!
>
>>>
>>> diff --git a/fs/ubifs/compress.c b/fs/ubifs/compress.c
>>> index a241ba01c9a8..ea6f06adcd43 100644
>>> --- a/fs/ubifs/compress.c
>>> +++ b/fs/ubifs/compress.c
>>> @@ -16,6 +16,7 @@
>>> */
>>> #include <crypto/acompress.h>
>>> +#include <linux/highmem.h>
>>> #include "ubifs.h"
>>> /* Fake description object for the "none" compressor */
>>> @@ -126,7 +127,7 @@ void ubifs_compress(const struct ubifs_info *c, const void *in_buf,
>>> {
>>> ACOMP_REQUEST_ALLOC(req, compr->cc, GFP_NOFS | __GFP_NOWARN);
>>> - acomp_request_set_src_nondma(req, in_buf, in_len);
>>> + acomp_request_set_src_dma(req, in_buf, in_len);
>>
>> Why not merging it into patch 13?
>
> Because it will break without this patch. If the input is a highmem
> folio it cannot be directly passed over to DMA (because the virtual
> address has been remapped by kmap_local).
Makes sense.
>
> Cheers,
>
Powered by blists - more mailing lists