aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_extfree_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_extfree_item.c')
-rw-r--r--fs/xfs/xfs_extfree_item.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/xfs/xfs_extfree_item.c b/fs/xfs/xfs_extfree_item.c
index bfdfbd192a38..93223ebb3372 100644
--- a/fs/xfs/xfs_extfree_item.c
+++ b/fs/xfs/xfs_extfree_item.c
@@ -584,16 +584,7 @@ xfs_efi_validate_ext(
struct xfs_mount *mp,
struct xfs_extent *extp)
{
- if (extp->ext_start + extp->ext_len <= extp->ext_start)
- return false;
-
- if (!xfs_verify_fsbno(mp, extp->ext_start))
- return false;
-
- if (!xfs_verify_fsbno(mp, extp->ext_start + extp->ext_len - 1))
- return false;
-
- return true;
+ return xfs_verify_fsbext(mp, extp->ext_start, extp->ext_len);
}
/*