Searched hist:"4268547305 c91b35ae7871374078de788a822ed1" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_ialloc.c | diff 4268547305c91b35ae7871374078de788a822ed1 Tue Jun 01 19:48:24 CDT 2021 Dave Chinner <dchinner@redhat.com> 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>
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_inode.c | diff 4268547305c91b35ae7871374078de788a822ed1 Tue Jun 01 19:48:24 CDT 2021 Dave Chinner <dchinner@redhat.com> 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>
|