mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
[XFS] Always use struct xfs_btree_block instead of short / longform
structures. Always use the generic xfs_btree_block type instead of the short / long structures. Add XFS_BTREE_SBLOCK_LEN / XFS_BTREE_LBLOCK_LEN defines for the length of a short / long form block. The rationale for this is that we will grow more btree block header variants to support CRCs and other RAS information, and always accessing them through the same datatype with unions for the short / long form pointers makes implementing this much easier. SGI-PV: 988146 SGI-Modid: xfs-linux-melb:xfs-kern:32300a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Donald Douwsma <donaldd@sgi.com> Signed-off-by: David Chinner <david@fromorbit.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
parent
136341b41a
commit
7cc95a821d
15 changed files with 165 additions and 187 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue