Lines Matching refs:xfs_calc_buf_res
51 xfs_calc_buf_res( in xfs_calc_buf_res() function
150 return xfs_calc_buf_res(M_IGEO(mp)->inobt_maxlevels, in xfs_calc_inobt_res()
152 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), in xfs_calc_inobt_res()
199 res = xfs_calc_buf_res(xfs_allocfree_block_count(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()
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()
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()
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()
336 adj = xfs_calc_buf_res( in xfs_calc_write_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()
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()
409 t2 += xfs_calc_buf_res( in xfs_calc_itruncate_reservation()
474 xfs_calc_buf_res(2 * XFS_DIROP_LOG_COUNT(mp), 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()
543 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + in xfs_calc_iunlink_remove_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()
607 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + in xfs_calc_iunlink_add_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()
685 xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + 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()
703 return xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) + in xfs_calc_icreate_resv_alloc()
810 xfs_calc_buf_res(1, XFS_SYMLINK_MAXLEN); in xfs_calc_symlink_reservation()
834 xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + in xfs_calc_ifree_reservation()
851 xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); in xfs_calc_ichange_reservation()
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()
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()
888 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), in xfs_calc_growrtalloc_reservation()
901 return xfs_calc_buf_res(1, mp->m_sb.sb_blocksize); in xfs_calc_growrtzero_reservation()
918 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + 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()
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()
964 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), in xfs_calc_addafork_reservation()
984 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK), 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()
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()
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()
1048 xfs_calc_buf_res(XFS_DA_NODE_MAXDEPTH, 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()
1065 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); in xfs_calc_clear_agi_bucket_reservation()
1075 return xfs_calc_buf_res(1, sizeof(struct xfs_disk_dquot)); in xfs_calc_qm_setqlim_reservation()
1089 xfs_calc_buf_res(1, in xfs_calc_qm_dqalloc_reservation()
1108 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); in xfs_calc_sb_reservation()