Lines Matching refs:mp
38 struct xfs_mount *mp) in xfs_log_calc_max_attrsetm_res() argument
43 size = xfs_attr_leaf_entsize_local_max(mp->m_attr_geo->blksize) - in xfs_log_calc_max_attrsetm_res()
45 nblks = XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK); in xfs_log_calc_max_attrsetm_res()
46 nblks += XFS_B_TO_FSB(mp, size); in xfs_log_calc_max_attrsetm_res()
47 nblks += XFS_NEXTENTADD_SPACE_RES(mp, size, XFS_ATTR_FORK); in xfs_log_calc_max_attrsetm_res()
49 return M_RES(mp)->tr_attrsetm.tr_logres + in xfs_log_calc_max_attrsetm_res()
50 M_RES(mp)->tr_attrsetrt.tr_logres * nblks; in xfs_log_calc_max_attrsetm_res()
60 struct xfs_mount *mp, in xfs_log_get_max_trans_res() argument
68 attr_space = xfs_log_calc_max_attrsetm_res(mp); in xfs_log_get_max_trans_res()
70 resp = (struct xfs_trans_res *)M_RES(mp); in xfs_log_get_max_trans_res()
71 end_resp = (struct xfs_trans_res *)(M_RES(mp) + 1); in xfs_log_get_max_trans_res()
83 *max_resp = M_RES(mp)->tr_attrsetm; /* struct copy */ in xfs_log_get_max_trans_res()
96 struct xfs_mount *mp) in xfs_log_calc_minimum_size() argument
103 xfs_log_get_max_trans_res(mp, &tres); in xfs_log_calc_minimum_size()
105 max_logres = xfs_log_calc_unit_res(mp, tres.tr_logres); in xfs_log_calc_minimum_size()
109 if (xfs_sb_version_haslogv2(&mp->m_sb) && mp->m_sb.sb_logsunit > 1) in xfs_log_calc_minimum_size()
110 lsunit = BTOBB(mp->m_sb.sb_logsunit); in xfs_log_calc_minimum_size()
147 return XFS_BB_TO_FSB(mp, min_logblks); in xfs_log_calc_minimum_size()