@@ -144,7 +144,7 @@ xfs_rtallocate_range(
144
144
xfs_mount_t * mp , /* file system mount point */
145
145
xfs_trans_t * tp , /* transaction pointer */
146
146
xfs_rtblock_t start , /* start block to allocate */
147
- xfs_extlen_t len , /* length to allocate */
147
+ xfs_rtxlen_t len , /* length to allocate */
148
148
struct xfs_buf * * rbpp , /* in/out: summary block buffer */
149
149
xfs_fsblock_t * rsb ) /* in/out: summary block number */
150
150
{
@@ -216,14 +216,14 @@ xfs_rtallocate_range(
216
216
* Make sure we don't run off the end of the rt volume. Be careful that
217
217
* adjusting maxlen downwards doesn't cause us to fail the alignment checks.
218
218
*/
219
- static inline xfs_extlen_t
219
+ static inline xfs_rtxlen_t
220
220
xfs_rtallocate_clamp_len (
221
221
struct xfs_mount * mp ,
222
222
xfs_rtblock_t startrtx ,
223
- xfs_extlen_t rtxlen ,
224
- xfs_extlen_t prod )
223
+ xfs_rtxlen_t rtxlen ,
224
+ xfs_rtxlen_t prod )
225
225
{
226
- xfs_extlen_t ret ;
226
+ xfs_rtxlen_t ret ;
227
227
228
228
ret = min (mp -> m_sb .sb_rextents , startrtx + rtxlen ) - startrtx ;
229
229
return rounddown (ret , prod );
@@ -240,13 +240,13 @@ xfs_rtallocate_extent_block(
240
240
xfs_mount_t * mp , /* file system mount point */
241
241
xfs_trans_t * tp , /* transaction pointer */
242
242
xfs_rtblock_t bbno , /* bitmap block number */
243
- xfs_extlen_t minlen , /* minimum length to allocate */
244
- xfs_extlen_t maxlen , /* maximum length to allocate */
245
- xfs_extlen_t * len , /* out: actual length allocated */
243
+ xfs_rtxlen_t minlen , /* minimum length to allocate */
244
+ xfs_rtxlen_t maxlen , /* maximum length to allocate */
245
+ xfs_rtxlen_t * len , /* out: actual length allocated */
246
246
xfs_rtblock_t * nextp , /* out: next block to try */
247
247
struct xfs_buf * * rbpp , /* in/out: summary block buffer */
248
248
xfs_fsblock_t * rsb , /* in/out: summary block number */
249
- xfs_extlen_t prod , /* extent product factor */
249
+ xfs_rtxlen_t prod , /* extent product factor */
250
250
xfs_rtblock_t * rtblock ) /* out: start block allocated */
251
251
{
252
252
xfs_rtblock_t besti ; /* best rtblock found so far */
@@ -319,7 +319,7 @@ xfs_rtallocate_extent_block(
319
319
* Searched the whole thing & didn't find a maxlen free extent.
320
320
*/
321
321
if (minlen < maxlen && besti != -1 ) {
322
- xfs_extlen_t p ; /* amount to trim length by */
322
+ xfs_rtxlen_t p ; /* amount to trim length by */
323
323
324
324
/*
325
325
* If size should be a multiple of prod, make that so.
@@ -360,16 +360,16 @@ xfs_rtallocate_extent_exact(
360
360
xfs_mount_t * mp , /* file system mount point */
361
361
xfs_trans_t * tp , /* transaction pointer */
362
362
xfs_rtblock_t bno , /* starting block number to allocate */
363
- xfs_extlen_t minlen , /* minimum length to allocate */
364
- xfs_extlen_t maxlen , /* maximum length to allocate */
365
- xfs_extlen_t * len , /* out: actual length allocated */
363
+ xfs_rtxlen_t minlen , /* minimum length to allocate */
364
+ xfs_rtxlen_t maxlen , /* maximum length to allocate */
365
+ xfs_rtxlen_t * len , /* out: actual length allocated */
366
366
struct xfs_buf * * rbpp , /* in/out: summary block buffer */
367
367
xfs_fsblock_t * rsb , /* in/out: summary block number */
368
- xfs_extlen_t prod , /* extent product factor */
368
+ xfs_rtxlen_t prod , /* extent product factor */
369
369
xfs_rtblock_t * rtblock ) /* out: start block allocated */
370
370
{
371
371
int error ; /* error value */
372
- xfs_extlen_t i ; /* extent length trimmed due to prod */
372
+ xfs_rtxlen_t i ; /* extent length trimmed due to prod */
373
373
int isfree ; /* extent is free */
374
374
xfs_rtblock_t next ; /* next block to try (dummy) */
375
375
@@ -440,12 +440,12 @@ xfs_rtallocate_extent_near(
440
440
xfs_mount_t * mp , /* file system mount point */
441
441
xfs_trans_t * tp , /* transaction pointer */
442
442
xfs_rtblock_t bno , /* starting block number to allocate */
443
- xfs_extlen_t minlen , /* minimum length to allocate */
444
- xfs_extlen_t maxlen , /* maximum length to allocate */
445
- xfs_extlen_t * len , /* out: actual length allocated */
443
+ xfs_rtxlen_t minlen , /* minimum length to allocate */
444
+ xfs_rtxlen_t maxlen , /* maximum length to allocate */
445
+ xfs_rtxlen_t * len , /* out: actual length allocated */
446
446
struct xfs_buf * * rbpp , /* in/out: summary block buffer */
447
447
xfs_fsblock_t * rsb , /* in/out: summary block number */
448
- xfs_extlen_t prod , /* extent product factor */
448
+ xfs_rtxlen_t prod , /* extent product factor */
449
449
xfs_rtblock_t * rtblock ) /* out: start block allocated */
450
450
{
451
451
int any ; /* any useful extents from summary */
@@ -644,12 +644,12 @@ STATIC int /* error */
644
644
xfs_rtallocate_extent_size (
645
645
xfs_mount_t * mp , /* file system mount point */
646
646
xfs_trans_t * tp , /* transaction pointer */
647
- xfs_extlen_t minlen , /* minimum length to allocate */
648
- xfs_extlen_t maxlen , /* maximum length to allocate */
649
- xfs_extlen_t * len , /* out: actual length allocated */
647
+ xfs_rtxlen_t minlen , /* minimum length to allocate */
648
+ xfs_rtxlen_t maxlen , /* maximum length to allocate */
649
+ xfs_rtxlen_t * len , /* out: actual length allocated */
650
650
struct xfs_buf * * rbpp , /* in/out: summary block buffer */
651
651
xfs_fsblock_t * rsb , /* in/out: summary block number */
652
- xfs_extlen_t prod , /* extent product factor */
652
+ xfs_rtxlen_t prod , /* extent product factor */
653
653
xfs_rtblock_t * rtblock ) /* out: start block allocated */
654
654
{
655
655
int error ; /* error value */
@@ -1197,11 +1197,11 @@ int /* error */
1197
1197
xfs_rtallocate_extent (
1198
1198
xfs_trans_t * tp , /* transaction pointer */
1199
1199
xfs_rtblock_t bno , /* starting block number to allocate */
1200
- xfs_extlen_t minlen , /* minimum length to allocate */
1201
- xfs_extlen_t maxlen , /* maximum length to allocate */
1202
- xfs_extlen_t * len , /* out: actual length allocated */
1200
+ xfs_rtxlen_t minlen , /* minimum length to allocate */
1201
+ xfs_rtxlen_t maxlen , /* maximum length to allocate */
1202
+ xfs_rtxlen_t * len , /* out: actual length allocated */
1203
1203
int wasdel , /* was a delayed allocation extent */
1204
- xfs_extlen_t prod , /* extent product factor */
1204
+ xfs_rtxlen_t prod , /* extent product factor */
1205
1205
xfs_rtblock_t * rtblock ) /* out: start block allocated */
1206
1206
{
1207
1207
xfs_mount_t * mp = tp -> t_mountp ;
@@ -1217,7 +1217,7 @@ xfs_rtallocate_extent(
1217
1217
* If prod is set then figure out what to do to minlen and maxlen.
1218
1218
*/
1219
1219
if (prod > 1 ) {
1220
- xfs_extlen_t i ;
1220
+ xfs_rtxlen_t i ;
1221
1221
1222
1222
if ((i = maxlen % prod ))
1223
1223
maxlen -= i ;
@@ -1444,7 +1444,7 @@ int /* error */
1444
1444
xfs_rtpick_extent (
1445
1445
xfs_mount_t * mp , /* file system mount point */
1446
1446
xfs_trans_t * tp , /* transaction pointer */
1447
- xfs_extlen_t len , /* allocation length (rtextents) */
1447
+ xfs_rtxlen_t len , /* allocation length (rtextents) */
1448
1448
xfs_rtblock_t * pick ) /* result rt extent */
1449
1449
{
1450
1450
xfs_rtblock_t b ; /* result block */
0 commit comments