|
@@ -753,19 +753,19 @@ xfs_rmap_map(
|
|
&have_lt);
|
|
&have_lt);
|
|
if (error)
|
|
if (error)
|
|
goto out_error;
|
|
goto out_error;
|
|
- XFS_WANT_CORRUPTED_GOTO(mp, have_lt == 1, out_error);
|
|
|
|
-
|
|
|
|
- error = xfs_rmap_get_rec(cur, <rec, &have_lt);
|
|
|
|
- if (error)
|
|
|
|
- goto out_error;
|
|
|
|
- XFS_WANT_CORRUPTED_GOTO(mp, have_lt == 1, out_error);
|
|
|
|
- trace_xfs_rmap_lookup_le_range_result(cur->bc_mp,
|
|
|
|
- cur->bc_private.a.agno, ltrec.rm_startblock,
|
|
|
|
- ltrec.rm_blockcount, ltrec.rm_owner,
|
|
|
|
- ltrec.rm_offset, ltrec.rm_flags);
|
|
|
|
|
|
+ if (have_lt) {
|
|
|
|
+ error = xfs_rmap_get_rec(cur, <rec, &have_lt);
|
|
|
|
+ if (error)
|
|
|
|
+ goto out_error;
|
|
|
|
+ XFS_WANT_CORRUPTED_GOTO(mp, have_lt == 1, out_error);
|
|
|
|
+ trace_xfs_rmap_lookup_le_range_result(cur->bc_mp,
|
|
|
|
+ cur->bc_private.a.agno, ltrec.rm_startblock,
|
|
|
|
+ ltrec.rm_blockcount, ltrec.rm_owner,
|
|
|
|
+ ltrec.rm_offset, ltrec.rm_flags);
|
|
|
|
|
|
- if (!xfs_rmap_is_mergeable(<rec, owner, flags))
|
|
|
|
- have_lt = 0;
|
|
|
|
|
|
+ if (!xfs_rmap_is_mergeable(<rec, owner, flags))
|
|
|
|
+ have_lt = 0;
|
|
|
|
+ }
|
|
|
|
|
|
XFS_WANT_CORRUPTED_GOTO(mp,
|
|
XFS_WANT_CORRUPTED_GOTO(mp,
|
|
have_lt == 0 ||
|
|
have_lt == 0 ||
|