xfs: make xfs_trans_get_buf_map return an error code
Convert xfs_trans_get_buf_map() to return numeric error codes like most everywhere else in xfs. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
@@ -2591,13 +2591,9 @@ xfs_da_get_buf(
|
||||
if (error || nmap == 0)
|
||||
goto out_free;
|
||||
|
||||
bp = xfs_trans_get_buf_map(tp, mp->m_ddev_targp, mapp, nmap, 0);
|
||||
error = bp ? bp->b_error : -EIO;
|
||||
if (error) {
|
||||
if (bp)
|
||||
xfs_trans_brelse(tp, bp);
|
||||
error = xfs_trans_get_buf_map(tp, mp->m_ddev_targp, mapp, nmap, 0, &bp);
|
||||
if (error)
|
||||
goto out_free;
|
||||
}
|
||||
|
||||
*bpp = bp;
|
||||
|
||||
|
Reference in New Issue
Block a user