]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ubifs: Use crypto_acomp interface
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 15 Mar 2025 10:30:47 +0000 (18:30 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2025 09:39:05 +0000 (17:39 +0800)
commit37b605f551f414fff098861080b3577a79924ba5
treeabfbe0e6342208e055865d337fc17e749b15246c
parentb03d542c3c9569f549b1ba0cf7f4d90151fbf8ab
ubifs: Use crypto_acomp interface

Replace the legacy crypto compression interface with the new acomp
interface.

Remove the compression mutexes and the overallocation for memory
(the offender LZO has been fixed).

Cap the output buffer length for compression to eliminate the
post-compression check for UBIFS_MIN_COMPRESS_DIFF.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Zhihao Cheng <chengzhihao1@huawei.com> # For xfstests
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
fs/ubifs/compress.c
fs/ubifs/journal.c
fs/ubifs/ubifs.h