@@ -338,11 +338,11 @@ xfs_calc_write_reservation(
338
338
blksz );
339
339
t1 += adj ;
340
340
t3 += adj ;
341
- return XFS_DQUOT_LOGRES ( mp ) + max3 (t1 , t2 , t3 );
341
+ return XFS_DQUOT_LOGRES + max3 (t1 , t2 , t3 );
342
342
}
343
343
344
344
t4 = xfs_calc_refcountbt_reservation (mp , 1 );
345
- return XFS_DQUOT_LOGRES ( mp ) + max (t4 , max3 (t1 , t2 , t3 ));
345
+ return XFS_DQUOT_LOGRES + max (t4 , max3 (t1 , t2 , t3 ));
346
346
}
347
347
348
348
unsigned int
@@ -410,11 +410,11 @@ xfs_calc_itruncate_reservation(
410
410
xfs_refcountbt_block_count (mp , 4 ),
411
411
blksz );
412
412
413
- return XFS_DQUOT_LOGRES ( mp ) + max3 (t1 , t2 , t3 );
413
+ return XFS_DQUOT_LOGRES + max3 (t1 , t2 , t3 );
414
414
}
415
415
416
416
t4 = xfs_calc_refcountbt_reservation (mp , 2 );
417
- return XFS_DQUOT_LOGRES ( mp ) + max (t4 , max3 (t1 , t2 , t3 ));
417
+ return XFS_DQUOT_LOGRES + max (t4 , max3 (t1 , t2 , t3 ));
418
418
}
419
419
420
420
unsigned int
@@ -466,7 +466,7 @@ STATIC uint
466
466
xfs_calc_rename_reservation (
467
467
struct xfs_mount * mp )
468
468
{
469
- unsigned int overhead = XFS_DQUOT_LOGRES ( mp ) ;
469
+ unsigned int overhead = XFS_DQUOT_LOGRES ;
470
470
struct xfs_trans_resv * resp = M_RES (mp );
471
471
unsigned int t1 , t2 , t3 = 0 ;
472
472
@@ -577,7 +577,7 @@ STATIC uint
577
577
xfs_calc_link_reservation (
578
578
struct xfs_mount * mp )
579
579
{
580
- unsigned int overhead = XFS_DQUOT_LOGRES ( mp ) ;
580
+ unsigned int overhead = XFS_DQUOT_LOGRES ;
581
581
struct xfs_trans_resv * resp = M_RES (mp );
582
582
unsigned int t1 , t2 , t3 = 0 ;
583
583
@@ -641,7 +641,7 @@ STATIC uint
641
641
xfs_calc_remove_reservation (
642
642
struct xfs_mount * mp )
643
643
{
644
- unsigned int overhead = XFS_DQUOT_LOGRES ( mp ) ;
644
+ unsigned int overhead = XFS_DQUOT_LOGRES ;
645
645
struct xfs_trans_resv * resp = M_RES (mp );
646
646
unsigned int t1 , t2 , t3 = 0 ;
647
647
@@ -729,7 +729,7 @@ xfs_calc_icreate_reservation(
729
729
struct xfs_mount * mp )
730
730
{
731
731
struct xfs_trans_resv * resp = M_RES (mp );
732
- unsigned int overhead = XFS_DQUOT_LOGRES ( mp ) ;
732
+ unsigned int overhead = XFS_DQUOT_LOGRES ;
733
733
unsigned int t1 , t2 , t3 = 0 ;
734
734
735
735
t1 = xfs_calc_icreate_resv_alloc (mp );
@@ -747,7 +747,7 @@ STATIC uint
747
747
xfs_calc_create_tmpfile_reservation (
748
748
struct xfs_mount * mp )
749
749
{
750
- uint res = XFS_DQUOT_LOGRES ( mp ) ;
750
+ uint res = XFS_DQUOT_LOGRES ;
751
751
752
752
res += xfs_calc_icreate_resv_alloc (mp );
753
753
return res + xfs_calc_iunlink_add_reservation (mp );
@@ -829,7 +829,7 @@ STATIC uint
829
829
xfs_calc_ifree_reservation (
830
830
struct xfs_mount * mp )
831
831
{
832
- return XFS_DQUOT_LOGRES ( mp ) +
832
+ return XFS_DQUOT_LOGRES +
833
833
xfs_calc_inode_res (mp , 1 ) +
834
834
xfs_calc_buf_res (3 , mp -> m_sb .sb_sectsize ) +
835
835
xfs_calc_iunlink_remove_reservation (mp ) +
@@ -846,7 +846,7 @@ STATIC uint
846
846
xfs_calc_ichange_reservation (
847
847
struct xfs_mount * mp )
848
848
{
849
- return XFS_DQUOT_LOGRES ( mp ) +
849
+ return XFS_DQUOT_LOGRES +
850
850
xfs_calc_inode_res (mp , 1 ) +
851
851
xfs_calc_buf_res (1 , mp -> m_sb .sb_sectsize );
852
852
@@ -955,7 +955,7 @@ STATIC uint
955
955
xfs_calc_addafork_reservation (
956
956
struct xfs_mount * mp )
957
957
{
958
- return XFS_DQUOT_LOGRES ( mp ) +
958
+ return XFS_DQUOT_LOGRES +
959
959
xfs_calc_inode_res (mp , 1 ) +
960
960
xfs_calc_buf_res (2 , mp -> m_sb .sb_sectsize ) +
961
961
xfs_calc_buf_res (1 , mp -> m_dir_geo -> blksize ) +
@@ -1003,7 +1003,7 @@ STATIC uint
1003
1003
xfs_calc_attrsetm_reservation (
1004
1004
struct xfs_mount * mp )
1005
1005
{
1006
- return XFS_DQUOT_LOGRES ( mp ) +
1006
+ return XFS_DQUOT_LOGRES +
1007
1007
xfs_calc_inode_res (mp , 1 ) +
1008
1008
xfs_calc_buf_res (1 , mp -> m_sb .sb_sectsize ) +
1009
1009
xfs_calc_buf_res (XFS_DA_NODE_MAXDEPTH , XFS_FSB_TO_B (mp , 1 ));
@@ -1043,7 +1043,7 @@ STATIC uint
1043
1043
xfs_calc_attrrm_reservation (
1044
1044
struct xfs_mount * mp )
1045
1045
{
1046
- return XFS_DQUOT_LOGRES ( mp ) +
1046
+ return XFS_DQUOT_LOGRES +
1047
1047
max ((xfs_calc_inode_res (mp , 1 ) +
1048
1048
xfs_calc_buf_res (XFS_DA_NODE_MAXDEPTH ,
1049
1049
XFS_FSB_TO_B (mp , 1 )) +
0 commit comments