[v4 PATCH 10/13] ubifs: Use crypto_acomp interface
Zhihao Cheng
chengzhihao1 at huawei.com
Sat Mar 15 01:58:31 PDT 2025
在 2025/3/14 20:22, Herbert Xu 写道:
> 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).
>
> Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
> ---
> fs/ubifs/compress.c | 116 ++++++++++++++++++++++++++++----------------
> fs/ubifs/journal.c | 2 +-
> fs/ubifs/ubifs.h | 15 +-----
> 3 files changed, 77 insertions(+), 56 deletions(-)
>
Hi, Herbert, I got some warning messages while running xfstests, it
looks like the compressor returns error code.
[ 397.971086] run fstests generic/103 at 2025-03-15 16:48:29
[ 398.182347] run fstests generic/104 at 2025-03-15 16:48:29
[ 398.396986] run fstests generic/105 at 2025-03-15 16:48:29
[ 398.602640] run fstests generic/106 at 2025-03-15 16:48:29
[ 398.816819] run fstests generic/107 at 2025-03-15 16:48:30
[ 399.032602] run fstests generic/108 at 2025-03-15 16:48:30
[ 399.271669] run fstests generic/109 at 2025-03-15 16:48:30
[ 399.449228] UBIFS (ubi1:0): default file-system created
[ 399.449257] UBIFS (ubi1:0): Mounting in unauthenticated mode
[ 399.449359] UBIFS (ubi1:0): background thread "ubifs_bgt1_0" started,
PID 1703
[ 399.449876] UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0,
name "vol_a"
[ 399.449882] UBIFS (ubi1:0): LEB size: 129024 bytes (126 KiB),
min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 399.449886] UBIFS (ubi1:0): FS size: 220631040 bytes (210 MiB, 1710
LEBs), max 1722 LEBs, journal size 11096064 bytes (10 MiB, 86 LEBs)
[ 399.449890] UBIFS (ubi1:0): reserved for root: 4952683 bytes (4836 KiB)
[ 399.449892] UBIFS (ubi1:0): media format: w5/r0 (latest is w5/r0),
UUID 56E8FEFD-CF25-445D-9159-BE65FC10EC9B, small LPT model
[ 399.449904] UBIFS (ubi1:0): full atime support is enabled.
[ 400.054087] UBIFS warning (ubi0:0 pid 110): ubifs_compress_req
[ubifs]: cannot compress 4096 bytes, compressor zstd, error -22, leave
data uncompressed
[ 400.055631] UBIFS warning (ubi0:0 pid 110): ubifs_compress_req
[ubifs]: cannot compress 4096 bytes, compressor zstd, error -22, leave
data uncompressed
[ 400.057137] UBIFS warning (ubi0:0 pid 110): ubifs_compress_req
[ubifs]: cannot compress 4096 bytes, compressor zstd, error -22, leave
data uncompressed
[ 400.058760] UBIFS warning (ubi0:0 pid 110): ubifs_compress_req
[ubifs]: cannot compress 4096 bytes, compressor zstd, error -22, leave
data uncompressed
More information about the linux-mtd
mailing list