ubifs: Fix wrong dirty space budget for dirty inode
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 11 Oct 2022 03:47:30 +0000 (11:47 +0800)
committerRichard Weinberger <richard@nod.at>
Thu, 2 Feb 2023 20:13:39 +0000 (21:13 +0100)
commitb248eaf049d9cdc5eb76b59399e4d3de233f02ac
treebb8abb59825a83ecfd40b3288fe8b3f5a5511d24
parentc04cc68da856eac2b59e2a421c3f81a2afc560db
ubifs: Fix wrong dirty space budget for dirty inode

Each dirty inode should reserve 'c->bi.inode_budget' bytes in space
budget calculation. Currently, space budget for dirty inode reports
more space than what UBIFS actually needs to write.

Fixes: 1e51764a3c2ac0 ("UBIFS: add new flash file system")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/budget.c