Lines Matching full:resp

497 	struct xfs_trans_resv	*resp = M_RES(mp);  in xfs_calc_rename_reservation()  local
511 t3 = max(resp->tr_attrsetm.tr_logres, in xfs_calc_rename_reservation()
512 resp->tr_attrrm.tr_logres); in xfs_calc_rename_reservation()
544 struct xfs_trans_resv *resp) in xfs_rename_log_count() argument
554 ret += max(resp->tr_attrsetm.tr_logcount, in xfs_rename_log_count()
555 resp->tr_attrrm.tr_logcount); in xfs_rename_log_count()
577 struct xfs_trans_resv *resp) in xfs_link_log_count() argument
586 ret += resp->tr_attrsetm.tr_logcount; in xfs_link_log_count()
608 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_link_reservation() local
619 t3 = resp->tr_attrsetm.tr_logres; in xfs_calc_link_reservation()
641 struct xfs_trans_resv *resp) in xfs_remove_log_count() argument
650 ret += resp->tr_attrrm.tr_logcount; in xfs_remove_log_count()
672 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_remove_reservation() local
684 t3 = resp->tr_attrrm.tr_logres; in xfs_calc_remove_reservation()
740 struct xfs_trans_resv *resp) in xfs_icreate_log_count() argument
749 ret += resp->tr_attrsetm.tr_logcount; in xfs_icreate_log_count()
758 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_icreate_reservation() local
766 t3 = resp->tr_attrsetm.tr_logres; in xfs_calc_icreate_reservation()
786 struct xfs_trans_resv *resp) in xfs_mkdir_log_count() argument
795 ret += resp->tr_attrsetm.tr_logcount; in xfs_mkdir_log_count()
813 struct xfs_trans_resv *resp) in xfs_symlink_log_count() argument
822 ret += resp->tr_attrsetm.tr_logcount; in xfs_symlink_log_count()
1155 struct xfs_trans_resv *resp) in xfs_calc_namespace_reservations() argument
1157 ASSERT(resp->tr_attrsetm.tr_logres > 0); in xfs_calc_namespace_reservations()
1159 resp->tr_rename.tr_logres = xfs_calc_rename_reservation(mp); in xfs_calc_namespace_reservations()
1160 resp->tr_rename.tr_logcount = xfs_rename_log_count(mp, resp); in xfs_calc_namespace_reservations()
1161 resp->tr_rename.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1163 resp->tr_link.tr_logres = xfs_calc_link_reservation(mp); in xfs_calc_namespace_reservations()
1164 resp->tr_link.tr_logcount = xfs_link_log_count(mp, resp); in xfs_calc_namespace_reservations()
1165 resp->tr_link.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1167 resp->tr_remove.tr_logres = xfs_calc_remove_reservation(mp); in xfs_calc_namespace_reservations()
1168 resp->tr_remove.tr_logcount = xfs_remove_log_count(mp, resp); in xfs_calc_namespace_reservations()
1169 resp->tr_remove.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1171 resp->tr_symlink.tr_logres = xfs_calc_symlink_reservation(mp); in xfs_calc_namespace_reservations()
1172 resp->tr_symlink.tr_logcount = xfs_symlink_log_count(mp, resp); in xfs_calc_namespace_reservations()
1173 resp->tr_symlink.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1175 resp->tr_create.tr_logres = xfs_calc_icreate_reservation(mp); in xfs_calc_namespace_reservations()
1176 resp->tr_create.tr_logcount = xfs_icreate_log_count(mp, resp); in xfs_calc_namespace_reservations()
1177 resp->tr_create.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1179 resp->tr_mkdir.tr_logres = xfs_calc_mkdir_reservation(mp); in xfs_calc_namespace_reservations()
1180 resp->tr_mkdir.tr_logcount = xfs_mkdir_log_count(mp, resp); in xfs_calc_namespace_reservations()
1181 resp->tr_mkdir.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_calc_namespace_reservations()
1187 struct xfs_trans_resv *resp) in xfs_trans_resv_calc() argument
1195 resp->tr_write.tr_logres = xfs_calc_write_reservation(mp, false); in xfs_trans_resv_calc()
1196 resp->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_trans_resv_calc()
1197 resp->tr_write.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1199 resp->tr_itruncate.tr_logres = xfs_calc_itruncate_reservation(mp, false); in xfs_trans_resv_calc()
1200 resp->tr_itruncate.tr_logcount = XFS_ITRUNCATE_LOG_COUNT; in xfs_trans_resv_calc()
1201 resp->tr_itruncate.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1203 resp->tr_create_tmpfile.tr_logres = in xfs_trans_resv_calc()
1205 resp->tr_create_tmpfile.tr_logcount = XFS_CREATE_TMPFILE_LOG_COUNT; in xfs_trans_resv_calc()
1206 resp->tr_create_tmpfile.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1208 resp->tr_ifree.tr_logres = xfs_calc_ifree_reservation(mp); in xfs_trans_resv_calc()
1209 resp->tr_ifree.tr_logcount = XFS_INACTIVE_LOG_COUNT; in xfs_trans_resv_calc()
1210 resp->tr_ifree.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1212 resp->tr_addafork.tr_logres = xfs_calc_addafork_reservation(mp); in xfs_trans_resv_calc()
1213 resp->tr_addafork.tr_logcount = XFS_ADDAFORK_LOG_COUNT; in xfs_trans_resv_calc()
1214 resp->tr_addafork.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1216 resp->tr_attrinval.tr_logres = xfs_calc_attrinval_reservation(mp); in xfs_trans_resv_calc()
1217 resp->tr_attrinval.tr_logcount = XFS_ATTRINVAL_LOG_COUNT; in xfs_trans_resv_calc()
1218 resp->tr_attrinval.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1220 resp->tr_attrsetm.tr_logres = xfs_calc_attrsetm_reservation(mp); in xfs_trans_resv_calc()
1221 resp->tr_attrsetm.tr_logcount = XFS_ATTRSET_LOG_COUNT; in xfs_trans_resv_calc()
1222 resp->tr_attrsetm.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1224 resp->tr_attrrm.tr_logres = xfs_calc_attrrm_reservation(mp); in xfs_trans_resv_calc()
1225 resp->tr_attrrm.tr_logcount = XFS_ATTRRM_LOG_COUNT; in xfs_trans_resv_calc()
1226 resp->tr_attrrm.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1228 resp->tr_growrtalloc.tr_logres = xfs_calc_growrtalloc_reservation(mp); in xfs_trans_resv_calc()
1229 resp->tr_growrtalloc.tr_logcount = XFS_DEFAULT_PERM_LOG_COUNT; in xfs_trans_resv_calc()
1230 resp->tr_growrtalloc.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1232 resp->tr_qm_dqalloc.tr_logres = xfs_calc_qm_dqalloc_reservation(mp, in xfs_trans_resv_calc()
1234 resp->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_trans_resv_calc()
1235 resp->tr_qm_dqalloc.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1237 xfs_calc_namespace_reservations(mp, resp); in xfs_trans_resv_calc()
1243 resp->tr_qm_setqlim.tr_logres = xfs_calc_qm_setqlim_reservation(); in xfs_trans_resv_calc()
1244 resp->tr_qm_setqlim.tr_logcount = XFS_DEFAULT_LOG_COUNT; in xfs_trans_resv_calc()
1246 resp->tr_sb.tr_logres = xfs_calc_sb_reservation(mp); in xfs_trans_resv_calc()
1247 resp->tr_sb.tr_logcount = XFS_DEFAULT_LOG_COUNT; in xfs_trans_resv_calc()
1250 resp->tr_growdata.tr_logres = xfs_calc_growdata_reservation(mp); in xfs_trans_resv_calc()
1251 resp->tr_growdata.tr_logcount = XFS_DEFAULT_PERM_LOG_COUNT; in xfs_trans_resv_calc()
1252 resp->tr_growdata.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
1255 resp->tr_ichange.tr_logres = xfs_calc_ichange_reservation(mp); in xfs_trans_resv_calc()
1256 resp->tr_fsyncts.tr_logres = xfs_calc_swrite_reservation(mp); in xfs_trans_resv_calc()
1257 resp->tr_writeid.tr_logres = xfs_calc_writeid_reservation(mp); in xfs_trans_resv_calc()
1258 resp->tr_attrsetrt.tr_logres = xfs_calc_attrsetrt_reservation(mp); in xfs_trans_resv_calc()
1259 resp->tr_clearagi.tr_logres = xfs_calc_clear_agi_bucket_reservation(mp); in xfs_trans_resv_calc()
1260 resp->tr_growrtzero.tr_logres = xfs_calc_growrtzero_reservation(mp); in xfs_trans_resv_calc()
1261 resp->tr_growrtfree.tr_logres = xfs_calc_growrtfree_reservation(mp); in xfs_trans_resv_calc()
1275 resp->tr_itruncate.tr_logcount += logcount_adj; in xfs_trans_resv_calc()
1276 resp->tr_write.tr_logcount += logcount_adj; in xfs_trans_resv_calc()
1277 resp->tr_qm_dqalloc.tr_logcount += logcount_adj; in xfs_trans_resv_calc()