diff options
| author | Gao Xiang <[email protected]> | 2025-04-08 11:44:48 +0000 |
|---|---|---|
| committer | Gao Xiang <[email protected]> | 2025-04-09 14:56:31 +0000 |
| commit | be45319c9fb1d5c272da9fd34854a7d39e7f58d1 (patch) | |
| tree | b4f32385e9df5e39b44e23f8e8fa1777c336b13e /lib/string.c | |
| parent | erofs: add __packed annotation to union(__le16..) (diff) | |
| download | kernel-be45319c9fb1d5c272da9fd34854a7d39e7f58d1.tar.gz kernel-be45319c9fb1d5c272da9fd34854a7d39e7f58d1.zip | |
erofs: fix encoded extents handling
- The MSB 32 bits of `z_fragmentoff` are available only in extent
records of size >= 8B.
- Use round_down() to calculate `lstart` as well as increase `pos`
correspondingly for extent records of size == 8B.
Fixes: 1d191b4ca51d ("erofs: implement encoded extent metadata")
Signed-off-by: Gao Xiang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
