aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_alloc_btree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_alloc_btree.c')
-rw-r--r--fs/xfs/xfs_alloc_btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_alloc_btree.c b/fs/xfs/xfs_alloc_btree.c
index 72c083f62a94..733cb75a8c5d 100644
--- a/fs/xfs/xfs_alloc_btree.c
+++ b/fs/xfs/xfs_alloc_btree.c
@@ -490,7 +490,7 @@ xfs_allocbt_maxrecs(
490 int blocklen, 490 int blocklen,
491 int leaf) 491 int leaf)
492{ 492{
493 blocklen -= sizeof(struct xfs_btree_sblock); 493 blocklen -= XFS_ALLOC_BLOCK_LEN(mp);
494 494
495 if (leaf) 495 if (leaf)
496 return blocklen / sizeof(xfs_alloc_rec_t); 496 return blocklen / sizeof(xfs_alloc_rec_t);