Lines Matching +full:2013 +full:- +full:2023
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2013 Jie Liu.
20 * Shortly after enabling the large extents count feature in 2023, longstanding
22 * the bugs resulted in over-estimates of that size, so there's no impact to
33 * features that didn't exist in 2023. In other words, only turn this on if
58 size = xfs_attr_leaf_entsize_local_max(mp->m_attr_geo->blksize) - in xfs_log_calc_max_attrsetm_res()
59 MAXNAMELEN - 1; in xfs_log_calc_max_attrsetm_res()
68 if (xfs_want_minlogsize_fixes(&mp->m_sb)) in xfs_log_calc_max_attrsetm_res()
73 return M_RES(mp)->tr_attrsetm.tr_logres + in xfs_log_calc_max_attrsetm_res()
74 M_RES(mp)->tr_attrsetrt.tr_logres * nblks; in xfs_log_calc_max_attrsetm_res()
86 unsigned int rmap_maxlevels = mp->m_rmap_maxlevels; in xfs_log_calc_trans_resv_for_minlogblocks()
92 if (xfs_want_minlogsize_fixes(&mp->m_sb)) { in xfs_log_calc_trans_resv_for_minlogblocks()
106 mp->m_rmap_maxlevels = XFS_OLD_REFLINK_RMAP_MAXLEVELS; in xfs_log_calc_trans_resv_for_minlogblocks()
115 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; in xfs_log_calc_trans_resv_for_minlogblocks()
116 resv->tr_itruncate.tr_logcount = in xfs_log_calc_trans_resv_for_minlogblocks()
118 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; in xfs_log_calc_trans_resv_for_minlogblocks()
121 * In the early days of non-reflink rmap, the impact of rmapbt in xfs_log_calc_trans_resv_for_minlogblocks()
124 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_log_calc_trans_resv_for_minlogblocks()
125 resv->tr_itruncate.tr_logcount = XFS_ITRUNCATE_LOG_COUNT; in xfs_log_calc_trans_resv_for_minlogblocks()
126 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_log_calc_trans_resv_for_minlogblocks()
134 resv->tr_write.tr_logres = in xfs_log_calc_trans_resv_for_minlogblocks()
136 resv->tr_itruncate.tr_logres = in xfs_log_calc_trans_resv_for_minlogblocks()
138 resv->tr_qm_dqalloc.tr_logres = in xfs_log_calc_trans_resv_for_minlogblocks()
142 mp->m_rmap_maxlevels = rmap_maxlevels; in xfs_log_calc_trans_resv_for_minlogblocks()
147 * the maximum one in terms of the pre-calculated values which were done
169 int tmp = resp->tr_logcount > 1 ? in xfs_log_get_max_trans_res()
170 resp->tr_logres * resp->tr_logcount : in xfs_log_get_max_trans_res()
171 resp->tr_logres; in xfs_log_get_max_trans_res()
182 max_resp->tr_logres = attr_space; in xfs_log_get_max_trans_res()
208 if (xfs_has_logv2(mp) && mp->m_sb.sb_logsunit > 1) in xfs_log_calc_minimum_size()
209 lsunit = BTOBB(mp->m_sb.sb_logsunit); in xfs_log_calc_minimum_size()
224 * require padding - the transaction data and the commit record which in xfs_log_calc_minimum_size()