]> git.ipfire.org Git - thirdparty/systemd.git/commit
homed: fix min_free tracking in manager_rebalance_calculate()
authordongshengyuan <545258830@qq.com>
Mon, 22 Jun 2026 05:38:05 +0000 (13:38 +0800)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jun 2026 20:06:05 +0000 (22:06 +0200)
commit294458fd00a483788c6d9b4aa3a8684d3599ca35
treee764126e23cb65fc841b41ea6471e6bdc5314c72
parent33bb855f3a841cf8c8eb9274abba9fd28becf53f
homed: fix min_free tracking in manager_rebalance_calculate()

min_free is supposed to track the minimum free space across all home
directories to scale the next rebalance interval. However, it was
incorrectly assigned h->rebalance_size (the home's current total
allocation) instead of new_free (the remaining allocatable space).

This caused the rebalance interval to be computed from allocation sizes
rather than free space, so a nearly-full home would not trigger the
shorter intervals it should, delaying response to low-space conditions.

Signed-off-by: dongshengyuan <dongshengyuan@uniontech.com>
src/home/homed-manager.c