xfs: move the max dir2 leaf entries count to struct xfs_da_geometry
Move the max leaf entries count 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
545910bcc8
commit
478c7835cb
@@ -129,6 +129,8 @@ xfs_da_mount(
|
||||
dageo->node_hdr_size = sizeof(struct xfs_da_node_hdr);
|
||||
dageo->leaf_hdr_size = sizeof(struct xfs_dir2_leaf_hdr);
|
||||
}
|
||||
dageo->leaf_max_ents = (dageo->blksize - dageo->leaf_hdr_size) /
|
||||
sizeof(struct xfs_dir2_leaf_entry);
|
||||
|
||||
/*
|
||||
* Now we've set up the block conversion variables, we can calculate the
|
||||
|
Reference in New Issue
Block a user