On Thu, Jan 23, 2020 at 09:20:01PM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > Refactor xfs_read_agf and xfs_alloc_read_agf to return EAGAIN if the > caller passed TRYLOCK and we weren't able to get the lock; and change > the callers to recognize this. > > Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > --- > fs/xfs/libxfs/xfs_alloc.c | 36 ++++++++++++++---------------------- > fs/xfs/libxfs/xfs_bmap.c | 11 ++++++----- > fs/xfs/xfs_filestream.c | 11 +++++------ > 3 files changed, 25 insertions(+), 33 deletions(-) The alloc flag assert changes make the error handling much simpler :) Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx