Lines Matching refs:dageo

113 	struct xfs_da_geometry	*dageo;  in xfs_da_mount()  local
130 dageo = mp->m_dir_geo; in xfs_da_mount()
131 dageo->blklog = mp->m_sb.sb_blocklog + mp->m_sb.sb_dirblklog; in xfs_da_mount()
132 dageo->fsblog = mp->m_sb.sb_blocklog; in xfs_da_mount()
133 dageo->blksize = xfs_dir2_dirblock_bytes(&mp->m_sb); in xfs_da_mount()
134 dageo->fsbcount = 1 << mp->m_sb.sb_dirblklog; in xfs_da_mount()
136 dageo->node_hdr_size = sizeof(struct xfs_da3_node_hdr); in xfs_da_mount()
137 dageo->leaf_hdr_size = sizeof(struct xfs_dir3_leaf_hdr); in xfs_da_mount()
138 dageo->free_hdr_size = sizeof(struct xfs_dir3_free_hdr); in xfs_da_mount()
139 dageo->data_entry_offset = in xfs_da_mount()
142 dageo->node_hdr_size = sizeof(struct xfs_da_node_hdr); in xfs_da_mount()
143 dageo->leaf_hdr_size = sizeof(struct xfs_dir2_leaf_hdr); in xfs_da_mount()
144 dageo->free_hdr_size = sizeof(struct xfs_dir2_free_hdr); in xfs_da_mount()
145 dageo->data_entry_offset = in xfs_da_mount()
148 dageo->leaf_max_ents = (dageo->blksize - dageo->leaf_hdr_size) / in xfs_da_mount()
150 dageo->free_max_bests = (dageo->blksize - dageo->free_hdr_size) / in xfs_da_mount()
153 dageo->data_first_offset = dageo->data_entry_offset + in xfs_da_mount()
161 dageo->datablk = xfs_dir2_byte_to_da(dageo, XFS_DIR2_DATA_OFFSET); in xfs_da_mount()
162 dageo->leafblk = xfs_dir2_byte_to_da(dageo, XFS_DIR2_LEAF_OFFSET); in xfs_da_mount()
163 dageo->freeblk = xfs_dir2_byte_to_da(dageo, XFS_DIR2_FREE_OFFSET); in xfs_da_mount()
164 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) / in xfs_da_mount()
166 dageo->max_extents = (XFS_DIR2_MAX_SPACES * XFS_DIR2_SPACE_SIZE) >> in xfs_da_mount()
168 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount()
171 dageo = mp->m_attr_geo; in xfs_da_mount()
172 dageo->blklog = mp->m_sb.sb_blocklog; in xfs_da_mount()
173 dageo->fsblog = mp->m_sb.sb_blocklog; in xfs_da_mount()
174 dageo->blksize = 1 << dageo->blklog; in xfs_da_mount()
175 dageo->fsbcount = 1; in xfs_da_mount()
176 dageo->node_hdr_size = mp->m_dir_geo->node_hdr_size; in xfs_da_mount()
177 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) / in xfs_da_mount()
181 dageo->max_extents = XFS_MAX_EXTCNT_ATTR_FORK_LARGE; in xfs_da_mount()
183 dageo->max_extents = XFS_MAX_EXTCNT_ATTR_FORK_SMALL; in xfs_da_mount()
185 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount()