xfs: pass flags and return gc errors from xfs_blockgc_free_quota
authorDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:48:36 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 3 Feb 2021 17:18:49 +0000 (09:18 -0800)
commit111068f80eac00173816c2e822c52c316b650df3
treec41f02db7838a1a33e58ee687d6df2335f48ea0d
parent3d4feec00673d34fbbfe0277d2e0ed1f51d20cb2
xfs: pass flags and return gc errors from xfs_blockgc_free_quota

Change the signature of xfs_blockgc_free_quota in preparation for the
next few patches.  Callers can now pass EOF_FLAGS into the function to
control scan parameters; and the function will now pass back any
corruption errors seen while scanning, though for our retry loops we'll
just try again unconditionally.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_file.c
fs/xfs/xfs_icache.c
fs/xfs/xfs_icache.h