]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:20 +0000 (13:55 +0100)
commit870248428b7fba5540852e784277b7ad00df1452
treead8438d678b4cf73e45117f49056b79ddce7a798
parent1e1c24f466aa14d6e4cc792e97b32388712d7d02
ubifs: Fix wrong dirty space budget for dirty inode

[ Upstream commit 8bd003aca5aa2b1c4ffad18e4986f6cc490e64e5 ]

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: 974763da840dbf ("UBIFS: add new flash file system")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ubifs/budget.c