Files
kernel_xiaomi_sm8250/fs
Zhihao Cheng 4be5be8e4d ubifs: Correct the total block count by deducting journal reservation
[ Upstream commit 84a2bee9c49769310efa19601157ef50a1df1267 ]

Since commit e874dcde1cbf ("ubifs: Reserve one leb for each journal
head while doing budget"), available space is calulated by deducting
reservation for all journal heads. However, the total block count (
which is only used by statfs) is not updated yet, which will cause
the wrong displaying for used space(total - available).
Fix it by deducting reservation for all journal heads from total
block count.

Fixes: e874dcde1cbf ("ubifs: Reserve one leb for each journal head while doing budget")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-05 10:59:42 +01:00
..
2024-12-05 10:59:38 +01:00
2024-11-08 16:19:19 +01:00
2021-09-22 11:48:02 +02:00
2024-11-08 16:19:17 +01:00
2024-09-04 13:13:01 +02:00
2023-09-23 10:48:17 +02:00
2022-06-14 16:59:24 +02:00
2024-07-05 09:00:35 +02:00
2023-01-18 11:30:40 +01:00
2021-12-14 10:18:07 +01:00