aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ialloc_btree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_ialloc_btree.c')
-rw-r--r--fs/xfs/xfs_ialloc_btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ialloc_btree.c b/fs/xfs/xfs_ialloc_btree.c
index 46aabb3fcbf3..99f2408e8d8e 100644
--- a/fs/xfs/xfs_ialloc_btree.c
+++ b/fs/xfs/xfs_ialloc_btree.c
@@ -375,7 +375,7 @@ xfs_inobt_maxrecs(
375 int blocklen, 375 int blocklen,
376 int leaf) 376 int leaf)
377{ 377{
378 blocklen -= sizeof(struct xfs_btree_sblock); 378 blocklen -= XFS_INOBT_BLOCK_LEN(mp);
379 379
380 if (leaf) 380 if (leaf)
381 return blocklen / sizeof(xfs_inobt_rec_t); 381 return blocklen / sizeof(xfs_inobt_rec_t);