aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_inode_item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode_item.c b/fs/xfs/xfs_inode_item.c
index 2d6fcfdc7834..fe00777e2796 100644
--- a/fs/xfs/xfs_inode_item.c
+++ b/fs/xfs/xfs_inode_item.c
@@ -316,7 +316,8 @@ xfs_inode_item_format(
316 ASSERT((ip->i_df.if_bytes / 316 ASSERT((ip->i_df.if_bytes /
317 (uint)sizeof(xfs_bmbt_rec_t)) > 0); 317 (uint)sizeof(xfs_bmbt_rec_t)) > 0);
318#ifdef XFS_NATIVE_HOST 318#ifdef XFS_NATIVE_HOST
319 if (nrecs == ip->i_d.di_nextents) { 319 if (ip->i_d.di_nextents == ip->i_df.if_bytes /
320 (uint)sizeof(xfs_bmbt_rec_t)) {
320 /* 321 /*
321 * There are no delayed allocation 322 * There are no delayed allocation
322 * extents, so just point to the 323 * extents, so just point to the