]> Pileus Git - ~andy/linux/blobdiff - fs/xfs/xfs_alloc_btree.c
[XFS] Always use struct xfs_btree_block instead of short / longform
[~andy/linux] / fs / xfs / xfs_alloc_btree.c
index 72c083f62a943eb03477b4ab2cc857a484a1537f..733cb75a8c5d956b96743f4b67c6a654850a366a 100644 (file)
@@ -490,7 +490,7 @@ xfs_allocbt_maxrecs(
        int                     blocklen,
        int                     leaf)
 {
-       blocklen -= sizeof(struct xfs_btree_sblock);
+       blocklen -= XFS_ALLOC_BLOCK_LEN(mp);
 
        if (leaf)
                return blocklen / sizeof(xfs_alloc_rec_t);