summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_rmap_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_rmap_item.c')
-rw-r--r--fs/xfs/xfs_rmap_item.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/xfs/xfs_rmap_item.c b/fs/xfs/xfs_rmap_item.c
index 9b84017184d9..4fa875237422 100644
--- a/fs/xfs/xfs_rmap_item.c
+++ b/fs/xfs/xfs_rmap_item.c
@@ -493,16 +493,7 @@ xfs_rui_validate_map(
if (rmap->me_startoff + rmap->me_len <= rmap->me_startoff)
return false;
- if (rmap->me_startblock + rmap->me_len <= rmap->me_startblock)
- return false;
-
- if (!xfs_verify_fsbno(mp, rmap->me_startblock))
- return false;
-
- if (!xfs_verify_fsbno(mp, rmap->me_startblock + rmap->me_len - 1))
- return false;
-
- return true;
+ return xfs_verify_fsbext(mp, rmap->me_startblock, rmap->me_len);
}
/*