Dave Chinner 4268547305 xfs: simplify xfs_dialloc_select_ag() return values
The only caller of xfs_dialloc_select_ag() will always return
-ENOSPC to it's caller if the agbp returned from
xfs_dialloc_select_ag() is NULL. IOWs, failure to find a candidate
AGI we can allocate inodes from is always an ENOSPC condition, so
move this logic up into xfs_dialloc_select_ag() so we can simplify
the return logic in this function.

xfs_dialloc_select_ag() now only ever returns 0 with a locked
agbp, or an error with no agbp.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
2021-06-02 10:48:24 +10:00
..
2021-06-02 10:48:24 +10:00
2021-04-15 09:35:51 -07:00
2019-11-07 13:00:53 -08:00
2021-04-15 09:35:51 -07:00
2021-06-02 10:48:24 +10:00
2021-06-02 10:48:24 +10:00
2021-04-15 09:35:51 -07:00
2021-04-15 09:35:51 -07:00
2021-04-29 10:43:51 -07:00
2021-04-15 09:35:51 -07:00
2021-04-15 09:35:51 -07:00
2021-06-02 10:48:24 +10:00