Thread (32 messages) 32 messages, 2 authors, 2021-08-09

Re: [PATCH 09/14] xfs: inactivate inodes any time we try to free speculative preallocations

From: Dave Chinner <david@fromorbit.com>
Date: 2021-08-05 05:36:58

On Wed, Aug 04, 2021 at 07:07:12PM -0700, Darrick J. Wong wrote:
From: Darrick J. Wong <djwong@kernel.org>

Other parts of XFS have learned to call xfs_blockgc_free_{space,quota}
to try to free speculative preallocations when space is tight.  This
means that file writes, transaction reservation failures, quota limit
enforcement, and the EOFBLOCKS ioctl all call this function to free
space when things are tight.

Since inode inactivation is now a background task, this means that the
filesystem can be hanging on to unlinked but not yet freed space.  Add
this to the list of things that xfs_blockgc_free_* makes writer threads
scan for when they cannot reserve space.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 fs/xfs/xfs_icache.c |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
Yup.

Reviewed-by: Dave Chinner <redacted>
-- 
Dave Chinner
david@fromorbit.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help