diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-01-23 01:48:37 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-02-03 18:18:49 +0100 |
commit | c237dd7c709432611a7642ca10c2a0c8c48ea313 (patch) | |
tree | 45adf801a54726beca7d2c3c5f82372c07ae61bd /fs/xfs/xfs_icache.h | |
parent | xfs: flush eof/cowblocks if we can't reserve quota for file blocks (diff) | |
download | linux-c237dd7c709432611a7642ca10c2a0c8c48ea313.tar.xz linux-c237dd7c709432611a7642ca10c2a0c8c48ea313.zip |
xfs: flush eof/cowblocks if we can't reserve quota for inode creation
If an inode creation is unable to reserve enough quota to handle the
modification, try clearing whatever space the filesystem might have been
hanging onto in the hopes of speeding up the filesystem. The flushing
behavior will become particularly important when we add deferred inode
inactivation because that will increase the amount of space that isn't
actively tied to user data.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_icache.h')
-rw-r--r-- | fs/xfs/xfs_icache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_icache.h b/fs/xfs/xfs_icache.h index d64ea8f5c589..5f7d7c192d1e 100644 --- a/fs/xfs/xfs_icache.h +++ b/fs/xfs/xfs_icache.h @@ -54,6 +54,9 @@ long xfs_reclaim_inodes_nr(struct xfs_mount *mp, int nr_to_scan); void xfs_inode_set_reclaim_tag(struct xfs_inode *ip); +int xfs_blockgc_free_dquots(struct xfs_mount *mp, struct xfs_dquot *udqp, + struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, + unsigned int eof_flags); int xfs_blockgc_free_quota(struct xfs_inode *ip, unsigned int eof_flags); void xfs_inode_set_eofblocks_tag(struct xfs_inode *ip); |