xfs: move the dir2 free header size to struct xfs_da_geometry
Move the free header size towards our structure for dir/attr geometry parameters. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
a84f3d5cb0
commit
ed1d612fbe
@@ -125,9 +125,11 @@ xfs_da_mount(
|
||||
if (xfs_sb_version_hascrc(&mp->m_sb)) {
|
||||
dageo->node_hdr_size = sizeof(struct xfs_da3_node_hdr);
|
||||
dageo->leaf_hdr_size = sizeof(struct xfs_dir3_leaf_hdr);
|
||||
dageo->free_hdr_size = sizeof(struct xfs_dir3_free_hdr);
|
||||
} else {
|
||||
dageo->node_hdr_size = sizeof(struct xfs_da_node_hdr);
|
||||
dageo->leaf_hdr_size = sizeof(struct xfs_dir2_leaf_hdr);
|
||||
dageo->free_hdr_size = sizeof(struct xfs_dir2_free_hdr);
|
||||
}
|
||||
dageo->leaf_max_ents = (dageo->blksize - dageo->leaf_hdr_size) /
|
||||
sizeof(struct xfs_dir2_leaf_entry);
|
||||
|
Reference in New Issue
Block a user