Commit 99cb82ff authored by Guo Xuenan's avatar Guo Xuenan Committed by Long Li
Browse files

xfs: set minleft correctly for randomly sparse inode allocations

hulk inclusion
category: bugfix
bugzilla: 188788, https://gitee.com/openeuler/kernel/issues/I76JSK


CVE: NA

--------------------------------

In DEBUG mode may do sparse inode allocations randomly, but forget to
set the remaining space correctly for the inode btree to split.
It's OK for most cases, only under DEBUG mode and AG space is running
out may bring something bad.

Fixes: 1cdadee1 ("xfs: randomly do sparse inode allocations in DEBUG mode")
Signed-off-by: default avatarGuo Xuenan <guoxuenan@huawei.com>
Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
parent ae21c8b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment