summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.c
diff options
context:
space:
mode:
authorZhihao Cheng <chengzhihao1@huawei.com>2024-09-05 04:09:09 +0300
committerRichard Weinberger <richard@nod.at>2024-11-14 20:01:42 +0300
commit84a2bee9c49769310efa19601157ef50a1df1267 (patch)
tree99f82f93d5cc442614941a150f86fa45ef4ded20 /lib/mpi/mpi-inline.c
parent94f5b1571ec8d90224675dd27e921053ff4f2370 (diff)
downloadlinux-84a2bee9c49769310efa19601157ef50a1df1267.tar.xz
ubifs: Correct the total block count by deducting journal reservation
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>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions