Lines Matching full:mp
70 struct xfs_mount *mp, in xfs_allocfree_block_count() argument
75 blocks = num_ops * 2 * (2 * mp->m_alloc_maxlevels - 1); in xfs_allocfree_block_count()
76 if (xfs_has_rmapbt(mp)) in xfs_allocfree_block_count()
77 blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); in xfs_allocfree_block_count()
89 struct xfs_mount *mp, in xfs_refcountbt_block_count() argument
92 return num_ops * (2 * mp->m_refc_maxlevels - 1); in xfs_refcountbt_block_count()
126 struct xfs_mount *mp, in xfs_calc_inode_res() argument
132 mp->m_sb.sb_inodesize + in xfs_calc_inode_res()
133 2 * xfs_bmbt_block_len(mp)); in xfs_calc_inode_res()
148 struct xfs_mount *mp) in xfs_calc_inobt_res() argument
150 return xfs_calc_buf_res(M_IGEO(mp)->inobt_maxlevels, in xfs_calc_inobt_res()
151 XFS_FSB_TO_B(mp, 1)) + in xfs_calc_inobt_res()
152 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), in xfs_calc_inobt_res()
153 XFS_FSB_TO_B(mp, 1)); in xfs_calc_inobt_res()
169 struct xfs_mount *mp) in xfs_calc_finobt_res() argument
171 if (!xfs_has_finobt(mp)) in xfs_calc_finobt_res()
174 return xfs_calc_inobt_res(mp); in xfs_calc_finobt_res()
194 struct xfs_mount *mp, in xfs_calc_inode_chunk_res() argument
199 res = xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), in xfs_calc_inode_chunk_res()
200 XFS_FSB_TO_B(mp, 1)); in xfs_calc_inode_chunk_res()
203 if (xfs_has_v3inodes(mp)) in xfs_calc_inode_chunk_res()
205 size = XFS_FSB_TO_B(mp, 1); in xfs_calc_inode_chunk_res()
208 res += xfs_calc_buf_res(M_IGEO(mp)->ialloc_blks, size); in xfs_calc_inode_chunk_res()
220 struct xfs_mount *mp, in xfs_rtalloc_block_count() argument
226 rtxlen = xfs_extlen_to_rtxlen(mp, XFS_MAX_BMBT_EXTLEN); in xfs_rtalloc_block_count()
227 rtbmp_blocks = xfs_rtbitmap_blockcount(mp, rtxlen); in xfs_rtalloc_block_count()
261 struct xfs_mount *mp, in xfs_calc_refcountbt_reservation() argument
264 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_refcountbt_reservation()
266 if (!xfs_has_reflink(mp)) in xfs_calc_refcountbt_reservation()
269 return xfs_calc_buf_res(nr_ops, mp->m_sb.sb_sectsize) + in xfs_calc_refcountbt_reservation()
270 xfs_calc_buf_res(xfs_refcountbt_block_count(mp, nr_ops), blksz); in xfs_calc_refcountbt_reservation()
298 struct xfs_mount *mp, in xfs_calc_write_reservation() argument
302 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_write_reservation()
304 t1 = xfs_calc_inode_res(mp, 1) + in xfs_calc_write_reservation()
305 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), blksz) + in xfs_calc_write_reservation()
306 xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + in xfs_calc_write_reservation()
307 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 2), blksz); in xfs_calc_write_reservation()
309 if (xfs_has_realtime(mp)) { in xfs_calc_write_reservation()
310 t2 = xfs_calc_inode_res(mp, 1) + in xfs_calc_write_reservation()
311 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), in xfs_calc_write_reservation()
313 xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + in xfs_calc_write_reservation()
314 xfs_calc_buf_res(xfs_rtalloc_block_count(mp, 1), blksz) + in xfs_calc_write_reservation()
315 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), blksz); in xfs_calc_write_reservation()
320 t3 = xfs_calc_buf_res(5, mp->m_sb.sb_sectsize) + in xfs_calc_write_reservation()
321 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 2), blksz); in xfs_calc_write_reservation()
335 if (xfs_has_reflink(mp)) in xfs_calc_write_reservation()
337 xfs_refcountbt_block_count(mp, 2), in xfs_calc_write_reservation()
344 t4 = xfs_calc_refcountbt_reservation(mp, 1); in xfs_calc_write_reservation()
350 struct xfs_mount *mp) in xfs_calc_write_reservation_minlogsize() argument
352 return xfs_calc_write_reservation(mp, true); in xfs_calc_write_reservation_minlogsize()
378 struct xfs_mount *mp, in xfs_calc_itruncate_reservation() argument
382 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_itruncate_reservation()
384 t1 = xfs_calc_inode_res(mp, 1) + in xfs_calc_itruncate_reservation()
385 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + 1, blksz); in xfs_calc_itruncate_reservation()
387 t2 = xfs_calc_buf_res(9, mp->m_sb.sb_sectsize) + in xfs_calc_itruncate_reservation()
388 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 4), blksz); in xfs_calc_itruncate_reservation()
390 if (xfs_has_realtime(mp)) { in xfs_calc_itruncate_reservation()
391 t3 = xfs_calc_buf_res(5, mp->m_sb.sb_sectsize) + in xfs_calc_itruncate_reservation()
392 xfs_calc_buf_res(xfs_rtalloc_block_count(mp, 2), blksz) + in xfs_calc_itruncate_reservation()
393 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 2), blksz); in xfs_calc_itruncate_reservation()
408 if (xfs_has_reflink(mp)) in xfs_calc_itruncate_reservation()
410 xfs_refcountbt_block_count(mp, 4), in xfs_calc_itruncate_reservation()
416 t4 = xfs_calc_refcountbt_reservation(mp, 2); in xfs_calc_itruncate_reservation()
422 struct xfs_mount *mp) in xfs_calc_itruncate_reservation_minlogsize() argument
424 return xfs_calc_itruncate_reservation(mp, true); in xfs_calc_itruncate_reservation_minlogsize()
467 struct xfs_mount *mp) in xfs_calc_rename_reservation() argument
470 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_rename_reservation()
473 t1 = xfs_calc_inode_res(mp, 5) + in xfs_calc_rename_reservation()
474 xfs_calc_buf_res(2 * XFS_DIROP_LOG_COUNT(mp), in xfs_calc_rename_reservation()
475 XFS_FSB_TO_B(mp, 1)); in xfs_calc_rename_reservation()
477 t2 = xfs_calc_buf_res(7, mp->m_sb.sb_sectsize) + in xfs_calc_rename_reservation()
478 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 3), in xfs_calc_rename_reservation()
479 XFS_FSB_TO_B(mp, 1)); in xfs_calc_rename_reservation()
481 if (xfs_has_parent(mp)) { in xfs_calc_rename_reservation()
516 struct xfs_mount *mp, in xfs_rename_log_count() argument
526 if (xfs_has_parent(mp)) in xfs_rename_log_count()
541 struct xfs_mount *mp) in xfs_calc_iunlink_remove_reservation() argument
543 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + in xfs_calc_iunlink_remove_reservation()
544 2 * M_IGEO(mp)->inode_cluster_size; in xfs_calc_iunlink_remove_reservation()
549 struct xfs_mount *mp, in xfs_link_log_count() argument
558 if (xfs_has_parent(mp)) in xfs_link_log_count()
578 struct xfs_mount *mp) in xfs_calc_link_reservation() argument
581 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_link_reservation()
584 overhead += xfs_calc_iunlink_remove_reservation(mp); in xfs_calc_link_reservation()
585 t1 = xfs_calc_inode_res(mp, 2) + in xfs_calc_link_reservation()
586 xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp), XFS_FSB_TO_B(mp, 1)); in xfs_calc_link_reservation()
587 t2 = xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + in xfs_calc_link_reservation()
588 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), in xfs_calc_link_reservation()
589 XFS_FSB_TO_B(mp, 1)); in xfs_calc_link_reservation()
591 if (xfs_has_parent(mp)) { in xfs_calc_link_reservation()
605 xfs_calc_iunlink_add_reservation(xfs_mount_t *mp) in xfs_calc_iunlink_add_reservation() argument
607 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + in xfs_calc_iunlink_add_reservation()
608 M_IGEO(mp)->inode_cluster_size; in xfs_calc_iunlink_add_reservation()
613 struct xfs_mount *mp, in xfs_remove_log_count() argument
622 if (xfs_has_parent(mp)) in xfs_remove_log_count()
642 struct xfs_mount *mp) in xfs_calc_remove_reservation() argument
645 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_remove_reservation()
648 overhead += xfs_calc_iunlink_add_reservation(mp); in xfs_calc_remove_reservation()
650 t1 = xfs_calc_inode_res(mp, 2) + in xfs_calc_remove_reservation()
651 xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp), XFS_FSB_TO_B(mp, 1)); in xfs_calc_remove_reservation()
652 t2 = xfs_calc_buf_res(4, mp->m_sb.sb_sectsize) + in xfs_calc_remove_reservation()
653 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 2), in xfs_calc_remove_reservation()
654 XFS_FSB_TO_B(mp, 1)); in xfs_calc_remove_reservation()
656 if (xfs_has_parent(mp)) { in xfs_calc_remove_reservation()
682 struct xfs_mount *mp) in xfs_calc_create_resv_modify() argument
684 return xfs_calc_inode_res(mp, 2) + in xfs_calc_create_resv_modify()
685 xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + in xfs_calc_create_resv_modify()
686 (uint)XFS_FSB_TO_B(mp, 1) + in xfs_calc_create_resv_modify()
687 xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp), XFS_FSB_TO_B(mp, 1)) + in xfs_calc_create_resv_modify()
688 xfs_calc_finobt_res(mp); in xfs_calc_create_resv_modify()
701 struct xfs_mount *mp) in xfs_calc_icreate_resv_alloc() argument
703 return xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) + in xfs_calc_icreate_resv_alloc()
704 mp->m_sb.sb_sectsize + in xfs_calc_icreate_resv_alloc()
705 xfs_calc_inode_chunk_res(mp, _ALLOC) + in xfs_calc_icreate_resv_alloc()
706 xfs_calc_inobt_res(mp) + in xfs_calc_icreate_resv_alloc()
707 xfs_calc_finobt_res(mp); in xfs_calc_icreate_resv_alloc()
712 struct xfs_mount *mp, in xfs_icreate_log_count() argument
721 if (xfs_has_parent(mp)) in xfs_icreate_log_count()
729 struct xfs_mount *mp) in xfs_calc_icreate_reservation() argument
731 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_icreate_reservation()
735 t1 = xfs_calc_icreate_resv_alloc(mp); in xfs_calc_icreate_reservation()
736 t2 = xfs_calc_create_resv_modify(mp); in xfs_calc_icreate_reservation()
738 if (xfs_has_parent(mp)) { in xfs_calc_icreate_reservation()
748 struct xfs_mount *mp) in xfs_calc_create_tmpfile_reservation() argument
752 res += xfs_calc_icreate_resv_alloc(mp); in xfs_calc_create_tmpfile_reservation()
753 return res + xfs_calc_iunlink_add_reservation(mp); in xfs_calc_create_tmpfile_reservation()
758 struct xfs_mount *mp, in xfs_mkdir_log_count() argument
767 if (xfs_has_parent(mp)) in xfs_mkdir_log_count()
778 struct xfs_mount *mp) in xfs_calc_mkdir_reservation() argument
780 return xfs_calc_icreate_reservation(mp); in xfs_calc_mkdir_reservation()
785 struct xfs_mount *mp, in xfs_symlink_log_count() argument
794 if (xfs_has_parent(mp)) in xfs_symlink_log_count()
807 struct xfs_mount *mp) in xfs_calc_symlink_reservation() argument
809 return xfs_calc_icreate_reservation(mp) + in xfs_calc_symlink_reservation()
830 struct xfs_mount *mp) in xfs_calc_ifree_reservation() argument
833 xfs_calc_inode_res(mp, 1) + in xfs_calc_ifree_reservation()
834 xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + in xfs_calc_ifree_reservation()
835 xfs_calc_iunlink_remove_reservation(mp) + in xfs_calc_ifree_reservation()
836 xfs_calc_inode_chunk_res(mp, _FREE) + in xfs_calc_ifree_reservation()
837 xfs_calc_inobt_res(mp) + in xfs_calc_ifree_reservation()
838 xfs_calc_finobt_res(mp); in xfs_calc_ifree_reservation()
847 struct xfs_mount *mp) in xfs_calc_ichange_reservation() argument
850 xfs_calc_inode_res(mp, 1) + in xfs_calc_ichange_reservation()
851 xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); in xfs_calc_ichange_reservation()
863 struct xfs_mount *mp) in xfs_calc_growdata_reservation() argument
865 return xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + in xfs_calc_growdata_reservation()
866 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), in xfs_calc_growdata_reservation()
867 XFS_FSB_TO_B(mp, 1)); in xfs_calc_growdata_reservation()
882 struct xfs_mount *mp) in xfs_calc_growrtalloc_reservation() argument
884 return xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) + in xfs_calc_growrtalloc_reservation()
885 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), in xfs_calc_growrtalloc_reservation()
886 XFS_FSB_TO_B(mp, 1)) + in xfs_calc_growrtalloc_reservation()
887 xfs_calc_inode_res(mp, 1) + in xfs_calc_growrtalloc_reservation()
888 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), in xfs_calc_growrtalloc_reservation()
889 XFS_FSB_TO_B(mp, 1)); in xfs_calc_growrtalloc_reservation()
899 struct xfs_mount *mp) in xfs_calc_growrtzero_reservation() argument
901 return xfs_calc_buf_res(1, mp->m_sb.sb_blocksize); in xfs_calc_growrtzero_reservation()
916 struct xfs_mount *mp) in xfs_calc_growrtfree_reservation() argument
918 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + in xfs_calc_growrtfree_reservation()
919 xfs_calc_inode_res(mp, 2) + in xfs_calc_growrtfree_reservation()
920 xfs_calc_buf_res(1, mp->m_sb.sb_blocksize) + in xfs_calc_growrtfree_reservation()
921 xfs_calc_buf_res(1, XFS_FSB_TO_B(mp, mp->m_rsumblocks)); in xfs_calc_growrtfree_reservation()
930 struct xfs_mount *mp) in xfs_calc_swrite_reservation() argument
932 return xfs_calc_inode_res(mp, 1); in xfs_calc_swrite_reservation()
941 struct xfs_mount *mp) in xfs_calc_writeid_reservation() argument
943 return xfs_calc_inode_res(mp, 1); in xfs_calc_writeid_reservation()
956 struct xfs_mount *mp) in xfs_calc_addafork_reservation() argument
959 xfs_calc_inode_res(mp, 1) + in xfs_calc_addafork_reservation()
960 xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) + in xfs_calc_addafork_reservation()
961 xfs_calc_buf_res(1, mp->m_dir_geo->blksize) + in xfs_calc_addafork_reservation()
962 xfs_calc_buf_res(XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK) + 1, in xfs_calc_addafork_reservation()
963 XFS_FSB_TO_B(mp, 1)) + in xfs_calc_addafork_reservation()
964 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), in xfs_calc_addafork_reservation()
965 XFS_FSB_TO_B(mp, 1)); in xfs_calc_addafork_reservation()
981 struct xfs_mount *mp) in xfs_calc_attrinval_reservation() argument
983 return max((xfs_calc_inode_res(mp, 1) + in xfs_calc_attrinval_reservation()
984 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK), in xfs_calc_attrinval_reservation()
985 XFS_FSB_TO_B(mp, 1))), in xfs_calc_attrinval_reservation()
986 (xfs_calc_buf_res(9, mp->m_sb.sb_sectsize) + in xfs_calc_attrinval_reservation()
987 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 4), in xfs_calc_attrinval_reservation()
988 XFS_FSB_TO_B(mp, 1)))); in xfs_calc_attrinval_reservation()
1004 struct xfs_mount *mp) in xfs_calc_attrsetm_reservation() argument
1007 xfs_calc_inode_res(mp, 1) + in xfs_calc_attrsetm_reservation()
1008 xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + in xfs_calc_attrsetm_reservation()
1009 xfs_calc_buf_res(XFS_DA_NODE_MAXDEPTH, XFS_FSB_TO_B(mp, 1)); in xfs_calc_attrsetm_reservation()
1020 * ext * M_RES(mp)->tr_attrsetrt.tr_logres
1024 struct xfs_mount *mp) in xfs_calc_attrsetrt_reservation() argument
1026 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + in xfs_calc_attrsetrt_reservation()
1027 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK), in xfs_calc_attrsetrt_reservation()
1028 XFS_FSB_TO_B(mp, 1)); in xfs_calc_attrsetrt_reservation()
1044 struct xfs_mount *mp) in xfs_calc_attrrm_reservation() argument
1047 max((xfs_calc_inode_res(mp, 1) + in xfs_calc_attrrm_reservation()
1049 XFS_FSB_TO_B(mp, 1)) + in xfs_calc_attrrm_reservation()
1050 (uint)XFS_FSB_TO_B(mp, in xfs_calc_attrrm_reservation()
1051 XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)) + in xfs_calc_attrrm_reservation()
1052 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), 0)), in xfs_calc_attrrm_reservation()
1053 (xfs_calc_buf_res(5, mp->m_sb.sb_sectsize) + in xfs_calc_attrrm_reservation()
1054 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 2), in xfs_calc_attrrm_reservation()
1055 XFS_FSB_TO_B(mp, 1)))); in xfs_calc_attrrm_reservation()
1063 struct xfs_mount *mp) in xfs_calc_clear_agi_bucket_reservation() argument
1065 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); in xfs_calc_clear_agi_bucket_reservation()
1085 struct xfs_mount *mp, in xfs_calc_qm_dqalloc_reservation() argument
1088 return xfs_calc_write_reservation(mp, for_minlogsize) + in xfs_calc_qm_dqalloc_reservation()
1090 XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) - 1); in xfs_calc_qm_dqalloc_reservation()
1095 struct xfs_mount *mp) in xfs_calc_qm_dqalloc_reservation_minlogsize() argument
1097 return xfs_calc_qm_dqalloc_reservation(mp, true); in xfs_calc_qm_dqalloc_reservation_minlogsize()
1106 struct xfs_mount *mp) in xfs_calc_sb_reservation() argument
1108 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); in xfs_calc_sb_reservation()
1127 struct xfs_mount *mp, in xfs_calc_namespace_reservations() argument
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()
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()
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()
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()
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()
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()
1159 struct xfs_mount *mp, in xfs_trans_resv_calc() argument
1168 resp->tr_write.tr_logres = xfs_calc_write_reservation(mp, false); in xfs_trans_resv_calc()
1172 resp->tr_itruncate.tr_logres = xfs_calc_itruncate_reservation(mp, false); in xfs_trans_resv_calc()
1177 xfs_calc_create_tmpfile_reservation(mp); in xfs_trans_resv_calc()
1181 resp->tr_ifree.tr_logres = xfs_calc_ifree_reservation(mp); in xfs_trans_resv_calc()
1185 resp->tr_addafork.tr_logres = xfs_calc_addafork_reservation(mp); in xfs_trans_resv_calc()
1189 resp->tr_attrinval.tr_logres = xfs_calc_attrinval_reservation(mp); in xfs_trans_resv_calc()
1193 resp->tr_attrsetm.tr_logres = xfs_calc_attrsetm_reservation(mp); in xfs_trans_resv_calc()
1197 resp->tr_attrrm.tr_logres = xfs_calc_attrrm_reservation(mp); in xfs_trans_resv_calc()
1201 resp->tr_growrtalloc.tr_logres = xfs_calc_growrtalloc_reservation(mp); in xfs_trans_resv_calc()
1205 resp->tr_qm_dqalloc.tr_logres = xfs_calc_qm_dqalloc_reservation(mp, in xfs_trans_resv_calc()
1210 xfs_calc_namespace_reservations(mp, resp); in xfs_trans_resv_calc()
1219 resp->tr_sb.tr_logres = xfs_calc_sb_reservation(mp); in xfs_trans_resv_calc()
1223 resp->tr_growdata.tr_logres = xfs_calc_growdata_reservation(mp); 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()
1241 if (xfs_has_reflink(mp) || xfs_has_rmapbt(mp)) in xfs_trans_resv_calc()
1243 if (xfs_has_reflink(mp)) in xfs_trans_resv_calc()
1245 if (xfs_has_rmapbt(mp)) in xfs_trans_resv_calc()