|
@@ -316,7 +316,8 @@ xfs_inode_item_format(
|
|
|
ASSERT((ip->i_df.if_bytes /
|
|
|
(uint)sizeof(xfs_bmbt_rec_t)) > 0);
|
|
|
#ifdef XFS_NATIVE_HOST
|
|
|
- if (nrecs == ip->i_d.di_nextents) {
|
|
|
+ if (ip->i_d.di_nextents == ip->i_df.if_bytes /
|
|
|
+ (uint)sizeof(xfs_bmbt_rec_t)) {
|
|
|
/*
|
|
|
* There are no delayed allocation
|
|
|
* extents, so just point to the
|