@@ -63,7 +63,7 @@ xfs_calc_buf_res(
63
63
* Keep in mind that max depth is calculated separately for each type of tree.
64
64
*/
65
65
uint
66
- xfs_allocfree_log_count (
66
+ xfs_allocfree_block_count (
67
67
struct xfs_mount * mp ,
68
68
uint num_ops )
69
69
{
@@ -146,7 +146,7 @@ xfs_calc_inobt_res(
146
146
{
147
147
return xfs_calc_buf_res (M_IGEO (mp )-> inobt_maxlevels ,
148
148
XFS_FSB_TO_B (mp , 1 )) +
149
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 1 ),
149
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 1 ),
150
150
XFS_FSB_TO_B (mp , 1 ));
151
151
}
152
152
@@ -193,7 +193,7 @@ xfs_calc_inode_chunk_res(
193
193
{
194
194
uint res , size = 0 ;
195
195
196
- res = xfs_calc_buf_res (xfs_allocfree_log_count (mp , 1 ),
196
+ res = xfs_calc_buf_res (xfs_allocfree_block_count (mp , 1 ),
197
197
XFS_FSB_TO_B (mp , 1 ));
198
198
if (alloc ) {
199
199
/* icreate tx uses ordered buffers */
@@ -213,7 +213,7 @@ xfs_calc_inode_chunk_res(
213
213
* extents, as well as the realtime summary block.
214
214
*/
215
215
static unsigned int
216
- xfs_rtalloc_log_count (
216
+ xfs_rtalloc_block_count (
217
217
struct xfs_mount * mp ,
218
218
unsigned int num_ops )
219
219
{
@@ -300,21 +300,21 @@ xfs_calc_write_reservation(
300
300
t1 = xfs_calc_inode_res (mp , 1 ) +
301
301
xfs_calc_buf_res (XFS_BM_MAXLEVELS (mp , XFS_DATA_FORK ), blksz ) +
302
302
xfs_calc_buf_res (3 , mp -> m_sb .sb_sectsize ) +
303
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 2 ), blksz );
303
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 2 ), blksz );
304
304
305
305
if (xfs_has_realtime (mp )) {
306
306
t2 = xfs_calc_inode_res (mp , 1 ) +
307
307
xfs_calc_buf_res (XFS_BM_MAXLEVELS (mp , XFS_DATA_FORK ),
308
308
blksz ) +
309
309
xfs_calc_buf_res (3 , mp -> m_sb .sb_sectsize ) +
310
- xfs_calc_buf_res (xfs_rtalloc_log_count (mp , 1 ), blksz ) +
311
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 1 ), blksz );
310
+ xfs_calc_buf_res (xfs_rtalloc_block_count (mp , 1 ), blksz ) +
311
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 1 ), blksz );
312
312
} else {
313
313
t2 = 0 ;
314
314
}
315
315
316
316
t3 = xfs_calc_buf_res (5 , mp -> m_sb .sb_sectsize ) +
317
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 2 ), blksz );
317
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 2 ), blksz );
318
318
319
319
/*
320
320
* In the early days of reflink, we included enough reservation to log
@@ -381,12 +381,12 @@ xfs_calc_itruncate_reservation(
381
381
xfs_calc_buf_res (XFS_BM_MAXLEVELS (mp , XFS_DATA_FORK ) + 1 , blksz );
382
382
383
383
t2 = xfs_calc_buf_res (9 , mp -> m_sb .sb_sectsize ) +
384
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 4 ), blksz );
384
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 4 ), blksz );
385
385
386
386
if (xfs_has_realtime (mp )) {
387
387
t3 = xfs_calc_buf_res (5 , mp -> m_sb .sb_sectsize ) +
388
- xfs_calc_buf_res (xfs_rtalloc_log_count (mp , 2 ), blksz ) +
389
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 2 ), blksz );
388
+ xfs_calc_buf_res (xfs_rtalloc_block_count (mp , 2 ), blksz ) +
389
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 2 ), blksz );
390
390
} else {
391
391
t3 = 0 ;
392
392
}
@@ -441,7 +441,7 @@ xfs_calc_rename_reservation(
441
441
xfs_calc_buf_res (2 * XFS_DIROP_LOG_COUNT (mp ),
442
442
XFS_FSB_TO_B (mp , 1 ))),
443
443
(xfs_calc_buf_res (7 , mp -> m_sb .sb_sectsize ) +
444
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 3 ),
444
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 3 ),
445
445
XFS_FSB_TO_B (mp , 1 ))));
446
446
}
447
447
@@ -481,7 +481,7 @@ xfs_calc_link_reservation(
481
481
xfs_calc_buf_res (XFS_DIROP_LOG_COUNT (mp ),
482
482
XFS_FSB_TO_B (mp , 1 ))),
483
483
(xfs_calc_buf_res (3 , mp -> m_sb .sb_sectsize ) +
484
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 1 ),
484
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 1 ),
485
485
XFS_FSB_TO_B (mp , 1 ))));
486
486
}
487
487
@@ -519,7 +519,7 @@ xfs_calc_remove_reservation(
519
519
xfs_calc_buf_res (XFS_DIROP_LOG_COUNT (mp ),
520
520
XFS_FSB_TO_B (mp , 1 ))),
521
521
(xfs_calc_buf_res (4 , mp -> m_sb .sb_sectsize ) +
522
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 2 ),
522
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 2 ),
523
523
XFS_FSB_TO_B (mp , 1 ))));
524
524
}
525
525
@@ -664,7 +664,7 @@ xfs_calc_growdata_reservation(
664
664
struct xfs_mount * mp )
665
665
{
666
666
return xfs_calc_buf_res (3 , mp -> m_sb .sb_sectsize ) +
667
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 1 ),
667
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 1 ),
668
668
XFS_FSB_TO_B (mp , 1 ));
669
669
}
670
670
@@ -686,7 +686,7 @@ xfs_calc_growrtalloc_reservation(
686
686
xfs_calc_buf_res (XFS_BM_MAXLEVELS (mp , XFS_DATA_FORK ),
687
687
XFS_FSB_TO_B (mp , 1 )) +
688
688
xfs_calc_inode_res (mp , 1 ) +
689
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 1 ),
689
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 1 ),
690
690
XFS_FSB_TO_B (mp , 1 ));
691
691
}
692
692
@@ -762,7 +762,7 @@ xfs_calc_addafork_reservation(
762
762
xfs_calc_buf_res (1 , mp -> m_dir_geo -> blksize ) +
763
763
xfs_calc_buf_res (XFS_DAENTER_BMAP1B (mp , XFS_DATA_FORK ) + 1 ,
764
764
XFS_FSB_TO_B (mp , 1 )) +
765
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 1 ),
765
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 1 ),
766
766
XFS_FSB_TO_B (mp , 1 ));
767
767
}
768
768
@@ -785,7 +785,7 @@ xfs_calc_attrinval_reservation(
785
785
xfs_calc_buf_res (XFS_BM_MAXLEVELS (mp , XFS_ATTR_FORK ),
786
786
XFS_FSB_TO_B (mp , 1 ))),
787
787
(xfs_calc_buf_res (9 , mp -> m_sb .sb_sectsize ) +
788
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 4 ),
788
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 4 ),
789
789
XFS_FSB_TO_B (mp , 1 ))));
790
790
}
791
791
@@ -852,7 +852,7 @@ xfs_calc_attrrm_reservation(
852
852
XFS_BM_MAXLEVELS (mp , XFS_ATTR_FORK )) +
853
853
xfs_calc_buf_res (XFS_BM_MAXLEVELS (mp , XFS_DATA_FORK ), 0 )),
854
854
(xfs_calc_buf_res (5 , mp -> m_sb .sb_sectsize ) +
855
- xfs_calc_buf_res (xfs_allocfree_log_count (mp , 2 ),
855
+ xfs_calc_buf_res (xfs_allocfree_block_count (mp , 2 ),
856
856
XFS_FSB_TO_B (mp , 1 ))));
857
857
}
858
858
0 commit comments