Lines Matching full:resp

470 	struct xfs_trans_resv	*resp = M_RES(mp);  in xfs_calc_rename_reservation()  local
484 t3 = max(resp->tr_attrsetm.tr_logres, in xfs_calc_rename_reservation()
485 resp->tr_attrrm.tr_logres); in xfs_calc_rename_reservation()
517 struct xfs_trans_resv *resp) in xfs_rename_log_count() argument
527 ret += max(resp->tr_attrsetm.tr_logcount, in xfs_rename_log_count()
528 resp->tr_attrrm.tr_logcount); in xfs_rename_log_count()
550 struct xfs_trans_resv *resp) in xfs_link_log_count() argument
559 ret += resp->tr_attrsetm.tr_logcount; in xfs_link_log_count()
581 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_link_reservation() local
592 t3 = resp->tr_attrsetm.tr_logres; in xfs_calc_link_reservation()
614 struct xfs_trans_resv *resp) in xfs_remove_log_count() argument
623 ret += resp->tr_attrrm.tr_logcount; in xfs_remove_log_count()
645 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_remove_reservation() local
657 t3 = resp->tr_attrrm.tr_logres; in xfs_calc_remove_reservation()
713 struct xfs_trans_resv *resp) in xfs_icreate_log_count() argument
722 ret += resp->tr_attrsetm.tr_logcount; in xfs_icreate_log_count()
731 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_icreate_reservation() local
739 t3 = resp->tr_attrsetm.tr_logres; in xfs_calc_icreate_reservation()
759 struct xfs_trans_resv *resp) in xfs_mkdir_log_count() argument
768 ret += resp->tr_attrsetm.tr_logcount; in xfs_mkdir_log_count()
786 struct xfs_trans_resv *resp) in xfs_symlink_log_count() argument
795 ret += resp->tr_attrsetm.tr_logcount; in xfs_symlink_log_count()
1128 struct xfs_trans_resv *resp) in xfs_calc_namespace_reservations() argument
1130 ASSERT(resp->tr_attrsetm.tr_logres > 0); in xfs_calc_namespace_reservations()
1132 resp->tr_rename.tr_logres = xfs_calc_rename_reservation(mp); in xfs_calc_namespace_reservations()
1133 resp->tr_rename.tr_logcount = xfs_rename_log_count(mp, resp); in xfs_calc_namespace_reservations()
1134 resp->tr_rename.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1136 resp->tr_link.tr_logres = xfs_calc_link_reservation(mp); in xfs_calc_namespace_reservations()
1137 resp->tr_link.tr_logcount = xfs_link_log_count(mp, resp); in xfs_calc_namespace_reservations()
1138 resp->tr_link.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1140 resp->tr_remove.tr_logres = xfs_calc_remove_reservation(mp); in xfs_calc_namespace_reservations()
1141 resp->tr_remove.tr_logcount = xfs_remove_log_count(mp, resp); in xfs_calc_namespace_reservations()
1142 resp->tr_remove.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1144 resp->tr_symlink.tr_logres = xfs_calc_symlink_reservation(mp); in xfs_calc_namespace_reservations()
1145 resp->tr_symlink.tr_logcount = xfs_symlink_log_count(mp, resp); in xfs_calc_namespace_reservations()
1146 resp->tr_symlink.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1148 resp->tr_create.tr_logres = xfs_calc_icreate_reservation(mp); in xfs_calc_namespace_reservations()
1149 resp->tr_create.tr_logcount = xfs_icreate_log_count(mp, resp); in xfs_calc_namespace_reservations()
1150 resp->tr_create.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1152 resp->tr_mkdir.tr_logres = xfs_calc_mkdir_reservation(mp); in xfs_calc_namespace_reservations()
1153 resp->tr_mkdir.tr_logcount = xfs_mkdir_log_count(mp, resp); in xfs_calc_namespace_reservations()
1154 resp->tr_mkdir.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1160 struct xfs_trans_resv *resp) in xfs_trans_resv_calc() argument
1168 resp->tr_write.tr_logres = xfs_calc_write_reservation(mp, false); in xfs_trans_resv_calc()
1169 resp->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_trans_resv_calc()
1170 resp->tr_write.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1172 resp->tr_itruncate.tr_logres = xfs_calc_itruncate_reservation(mp, false); in xfs_trans_resv_calc()
1173 resp->tr_itruncate.tr_logcount = XFS_ITRUNCATE_LOG_COUNT; in xfs_trans_resv_calc()
1174 resp->tr_itruncate.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1176 resp->tr_create_tmpfile.tr_logres = in xfs_trans_resv_calc()
1178 resp->tr_create_tmpfile.tr_logcount = XFS_CREATE_TMPFILE_LOG_COUNT; in xfs_trans_resv_calc()
1179 resp->tr_create_tmpfile.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1181 resp->tr_ifree.tr_logres = xfs_calc_ifree_reservation(mp); in xfs_trans_resv_calc()
1182 resp->tr_ifree.tr_logcount = XFS_INACTIVE_LOG_COUNT; in xfs_trans_resv_calc()
1183 resp->tr_ifree.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1185 resp->tr_addafork.tr_logres = xfs_calc_addafork_reservation(mp); in xfs_trans_resv_calc()
1186 resp->tr_addafork.tr_logcount = XFS_ADDAFORK_LOG_COUNT; in xfs_trans_resv_calc()
1187 resp->tr_addafork.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1189 resp->tr_attrinval.tr_logres = xfs_calc_attrinval_reservation(mp); in xfs_trans_resv_calc()
1190 resp->tr_attrinval.tr_logcount = XFS_ATTRINVAL_LOG_COUNT; in xfs_trans_resv_calc()
1191 resp->tr_attrinval.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1193 resp->tr_attrsetm.tr_logres = xfs_calc_attrsetm_reservation(mp); in xfs_trans_resv_calc()
1194 resp->tr_attrsetm.tr_logcount = XFS_ATTRSET_LOG_COUNT; in xfs_trans_resv_calc()
1195 resp->tr_attrsetm.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1197 resp->tr_attrrm.tr_logres = xfs_calc_attrrm_reservation(mp); in xfs_trans_resv_calc()
1198 resp->tr_attrrm.tr_logcount = XFS_ATTRRM_LOG_COUNT; in xfs_trans_resv_calc()
1199 resp->tr_attrrm.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1201 resp->tr_growrtalloc.tr_logres = xfs_calc_growrtalloc_reservation(mp); in xfs_trans_resv_calc()
1202 resp->tr_growrtalloc.tr_logcount = XFS_DEFAULT_PERM_LOG_COUNT; in xfs_trans_resv_calc()
1203 resp->tr_growrtalloc.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1205 resp->tr_qm_dqalloc.tr_logres = xfs_calc_qm_dqalloc_reservation(mp, in xfs_trans_resv_calc()
1207 resp->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_trans_resv_calc()
1208 resp->tr_qm_dqalloc.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1210 xfs_calc_namespace_reservations(mp, resp); in xfs_trans_resv_calc()
1216 resp->tr_qm_setqlim.tr_logres = xfs_calc_qm_setqlim_reservation(); in xfs_trans_resv_calc()
1217 resp->tr_qm_setqlim.tr_logcount = XFS_DEFAULT_LOG_COUNT; in xfs_trans_resv_calc()
1219 resp->tr_sb.tr_logres = xfs_calc_sb_reservation(mp); in xfs_trans_resv_calc()
1220 resp->tr_sb.tr_logcount = XFS_DEFAULT_LOG_COUNT; in xfs_trans_resv_calc()
1223 resp->tr_growdata.tr_logres = xfs_calc_growdata_reservation(mp); in xfs_trans_resv_calc()
1224 resp->tr_growdata.tr_logcount = XFS_DEFAULT_PERM_LOG_COUNT; in xfs_trans_resv_calc()
1225 resp->tr_growdata.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1228 resp->tr_ichange.tr_logres = xfs_calc_ichange_reservation(mp); in xfs_trans_resv_calc()
1229 resp->tr_fsyncts.tr_logres = xfs_calc_swrite_reservation(mp); in xfs_trans_resv_calc()
1230 resp->tr_writeid.tr_logres = xfs_calc_writeid_reservation(mp); in xfs_trans_resv_calc()
1231 resp->tr_attrsetrt.tr_logres = xfs_calc_attrsetrt_reservation(mp); in xfs_trans_resv_calc()
1232 resp->tr_clearagi.tr_logres = xfs_calc_clear_agi_bucket_reservation(mp); in xfs_trans_resv_calc()
1233 resp->tr_growrtzero.tr_logres = xfs_calc_growrtzero_reservation(mp); in xfs_trans_resv_calc()
1234 resp->tr_growrtfree.tr_logres = xfs_calc_growrtfree_reservation(mp); in xfs_trans_resv_calc()
1248 resp->tr_itruncate.tr_logcount += logcount_adj; in xfs_trans_resv_calc()
1249 resp->tr_write.tr_logcount += logcount_adj; in xfs_trans_resv_calc()
1250 resp->tr_qm_dqalloc.tr_logcount += logcount_adj; in xfs_trans_resv_calc()