]> Pileus Git - ~andy/linux/blobdiff - fs/xfs/xfs_ialloc_btree.c
ALSA: sound/ali5451: typo: s/resouces/resources/
[~andy/linux] / fs / xfs / xfs_ialloc_btree.c
index 46aabb3fcbf3a5bf49ac382175cbd1c9a53c3c83..99f2408e8d8e634ac446914a505982bba3d48deb 100644 (file)
@@ -375,7 +375,7 @@ xfs_inobt_maxrecs(
        int                     blocklen,
        int                     leaf)
 {
-       blocklen -= sizeof(struct xfs_btree_sblock);
+       blocklen -= XFS_INOBT_BLOCK_LEN(mp);
 
        if (leaf)
                return blocklen / sizeof(xfs_inobt_rec_t);