Files
linux-stable-mirror/fs
Gao Xiang 4fc9b12e43 erofs: unify lcn as u64 for 32-bit platforms
[ Upstream commit 2d8c7edcb6 ]

As sashiko reported [1], `lcn` was typed as `unsigned long` (or
`unsigned int` sometimes), which is only 32 bits wide on 32-bit
platforms, which causes `(lcn << lclusterbits)` to be truncated
at 4 GiB.

In order to consolidate the logic, just use `u64` consistently
around the codebase.

[1] https://sashiko.dev/r/20260420034612.1899973-1-hsiangkao%40linux.alibaba.com

Fixes: 152a333a58 ("staging: erofs: add compacted compression indexes support")
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-05-23 13:04:47 +02:00
..
2025-07-10 16:05:08 +02:00
2026-05-23 13:04:35 +02:00
2026-03-04 07:21:10 -05:00
2026-01-08 10:14:49 +01:00
2026-01-17 16:31:15 +01:00
2026-05-23 13:04:35 +02:00
2026-05-23 13:04:35 +02:00
2025-10-29 14:08:51 +01:00
2026-05-23 13:04:35 +02:00
2026-05-23 13:04:35 +02:00
2026-01-08 10:13:54 +01:00
2026-01-08 10:14:49 +01:00
2026-05-23 13:04:35 +02:00
2026-05-23 13:04:35 +02:00
2026-05-23 13:04:35 +02:00
2026-05-23 13:04:35 +02:00
2026-03-13 17:20:36 +01:00