]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: queue inactivation immediately when free realtime extents are tight
authorDarrick J. Wong <djwong@kernel.org>
Fri, 6 Aug 2021 18:05:41 +0000 (11:05 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 9 Aug 2021 17:52:18 +0000 (10:52 -0700)
commit8dc3be0e3acb72f764fc653c5619a887c3010482
treebff36ab92a20aa8736469f953917b02bed2b7c02
parentaba3e8948b0860961e48834023d7dbf24df9e632
xfs: queue inactivation immediately when free realtime extents are tight

Now that we have made the inactivation of unlinked inodes a background
task to increase the throughput of file deletions, we need to be a
little more careful about how long of a delay we can tolerate.

Similar to the patch doing this for free space on the data device, if
the file being inactivated is a realtime file and the realtime volume is
running low on free extents, we want to run the worker ASAP so that the
realtime allocator can make better decisions.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_icache.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h