mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
xfs: add missing rmap error return
xfs_rmap_lookup_le_range can return errors, so we need to check for them and bail out. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
parent
cec572561a
commit
52101dfe56
@ -1374,6 +1374,8 @@ xfs_rmap_convert_shared(
|
||||
*/
|
||||
error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags,
|
||||
&PREV, &i);
|
||||
if (error)
|
||||
goto done;
|
||||
XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
|
||||
|
||||
ASSERT(PREV.rm_offset <= offset);
|
||||
|
Loading…
Reference in New Issue
Block a user