diff options
| author | Gao Xiang <[email protected]> | 2025-01-23 09:01:09 +0000 |
|---|---|---|
| committer | Gao Xiang <[email protected]> | 2025-01-23 09:12:11 +0000 |
| commit | 8f9530aeeb4f756bdfa70510b40e5d28ea3c742e (patch) | |
| tree | 2716080256c41c1c9d881496d80b9290747f6824 /lib/fault-inject.c | |
| parent | erofs: remove dead code in erofs_fc_parse_param (diff) | |
| download | kernel-8f9530aeeb4f756bdfa70510b40e5d28ea3c742e.tar.gz kernel-8f9530aeeb4f756bdfa70510b40e5d28ea3c742e.zip | |
erofs: refine z_erofs_get_extent_compressedlen()
- Set `compressedblks = 1` directly for non-bigpcluster cases. This
simplifies the logic a bit since lcluster sizes larger than one block
are unsupported and the details remain unclear.
- For Z_EROFS_LCLUSTER_TYPE_PLAIN pclusters, avoid assuming
`compressedblks = 1` by default. Instead, check if
Z_EROFS_ADVISE_BIG_PCLUSTER_2 is set.
It basically has no impact to existing valid images, but it's useful to
find the gap to prepare for large PLAIN pclusters.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
