@@ -292,16 +292,16 @@ xfs_refcount_update_diff_items(
292
292
/* Set the phys extent flags for this reverse mapping. */
293
293
static void
294
294
xfs_trans_set_refcount_flags (
295
- struct xfs_phys_extent * refc ,
295
+ struct xfs_phys_extent * pmap ,
296
296
enum xfs_refcount_intent_type type )
297
297
{
298
- refc -> pe_flags = 0 ;
298
+ pmap -> pe_flags = 0 ;
299
299
switch (type ) {
300
300
case XFS_REFCOUNT_INCREASE :
301
301
case XFS_REFCOUNT_DECREASE :
302
302
case XFS_REFCOUNT_ALLOC_COW :
303
303
case XFS_REFCOUNT_FREE_COW :
304
- refc -> pe_flags |= type ;
304
+ pmap -> pe_flags |= type ;
305
305
break ;
306
306
default :
307
307
ASSERT (0 );
@@ -313,10 +313,10 @@ STATIC void
313
313
xfs_refcount_update_log_item (
314
314
struct xfs_trans * tp ,
315
315
struct xfs_cui_log_item * cuip ,
316
- struct xfs_refcount_intent * refc )
316
+ struct xfs_refcount_intent * ri )
317
317
{
318
318
uint next_extent ;
319
- struct xfs_phys_extent * ext ;
319
+ struct xfs_phys_extent * pmap ;
320
320
321
321
tp -> t_flags |= XFS_TRANS_DIRTY ;
322
322
set_bit (XFS_LI_DIRTY , & cuip -> cui_item .li_flags );
@@ -328,10 +328,10 @@ xfs_refcount_update_log_item(
328
328
*/
329
329
next_extent = atomic_inc_return (& cuip -> cui_next_extent ) - 1 ;
330
330
ASSERT (next_extent < cuip -> cui_format .cui_nextents );
331
- ext = & cuip -> cui_format .cui_extents [next_extent ];
332
- ext -> pe_startblock = refc -> ri_startblock ;
333
- ext -> pe_len = refc -> ri_blockcount ;
334
- xfs_trans_set_refcount_flags (ext , refc -> ri_type );
331
+ pmap = & cuip -> cui_format .cui_extents [next_extent ];
332
+ pmap -> pe_startblock = ri -> ri_startblock ;
333
+ pmap -> pe_len = ri -> ri_blockcount ;
334
+ xfs_trans_set_refcount_flags (pmap , ri -> ri_type );
335
335
}
336
336
337
337
static struct xfs_log_item *
@@ -343,15 +343,15 @@ xfs_refcount_update_create_intent(
343
343
{
344
344
struct xfs_mount * mp = tp -> t_mountp ;
345
345
struct xfs_cui_log_item * cuip = xfs_cui_init (mp , count );
346
- struct xfs_refcount_intent * refc ;
346
+ struct xfs_refcount_intent * ri ;
347
347
348
348
ASSERT (count > 0 );
349
349
350
350
xfs_trans_add_item (tp , & cuip -> cui_item );
351
351
if (sort )
352
352
list_sort (mp , items , xfs_refcount_update_diff_items );
353
- list_for_each_entry (refc , items , ri_list )
354
- xfs_refcount_update_log_item (tp , cuip , refc );
353
+ list_for_each_entry (ri , items , ri_list )
354
+ xfs_refcount_update_log_item (tp , cuip , ri );
355
355
return & cuip -> cui_item ;
356
356
}
357
357
@@ -403,10 +403,10 @@ STATIC void
403
403
xfs_refcount_update_cancel_item (
404
404
struct list_head * item )
405
405
{
406
- struct xfs_refcount_intent * refc ;
406
+ struct xfs_refcount_intent * ri ;
407
407
408
- refc = container_of (item , struct xfs_refcount_intent , ri_list );
409
- kmem_cache_free (xfs_refcount_intent_cache , refc );
408
+ ri = container_of (item , struct xfs_refcount_intent , ri_list );
409
+ kmem_cache_free (xfs_refcount_intent_cache , ri );
410
410
}
411
411
412
412
const struct xfs_defer_op_type xfs_refcount_update_defer_type = {
@@ -423,15 +423,15 @@ const struct xfs_defer_op_type xfs_refcount_update_defer_type = {
423
423
static inline bool
424
424
xfs_cui_validate_phys (
425
425
struct xfs_mount * mp ,
426
- struct xfs_phys_extent * refc )
426
+ struct xfs_phys_extent * pmap )
427
427
{
428
428
if (!xfs_has_reflink (mp ))
429
429
return false;
430
430
431
- if (refc -> pe_flags & ~XFS_REFCOUNT_EXTENT_FLAGS )
431
+ if (pmap -> pe_flags & ~XFS_REFCOUNT_EXTENT_FLAGS )
432
432
return false;
433
433
434
- switch (refc -> pe_flags & XFS_REFCOUNT_EXTENT_TYPE_MASK ) {
434
+ switch (pmap -> pe_flags & XFS_REFCOUNT_EXTENT_TYPE_MASK ) {
435
435
case XFS_REFCOUNT_INCREASE :
436
436
case XFS_REFCOUNT_DECREASE :
437
437
case XFS_REFCOUNT_ALLOC_COW :
@@ -441,7 +441,7 @@ xfs_cui_validate_phys(
441
441
return false;
442
442
}
443
443
444
- return xfs_verify_fsbext (mp , refc -> pe_startblock , refc -> pe_len );
444
+ return xfs_verify_fsbext (mp , pmap -> pe_startblock , pmap -> pe_len );
445
445
}
446
446
447
447
/*
@@ -499,10 +499,10 @@ xfs_cui_item_recover(
499
499
500
500
for (i = 0 ; i < cuip -> cui_format .cui_nextents ; i ++ ) {
501
501
struct xfs_refcount_intent fake = { };
502
- struct xfs_phys_extent * refc ;
502
+ struct xfs_phys_extent * pmap ;
503
503
504
- refc = & cuip -> cui_format .cui_extents [i ];
505
- refc_type = refc -> pe_flags & XFS_REFCOUNT_EXTENT_TYPE_MASK ;
504
+ pmap = & cuip -> cui_format .cui_extents [i ];
505
+ refc_type = pmap -> pe_flags & XFS_REFCOUNT_EXTENT_TYPE_MASK ;
506
506
switch (refc_type ) {
507
507
case XFS_REFCOUNT_INCREASE :
508
508
case XFS_REFCOUNT_DECREASE :
@@ -518,8 +518,8 @@ xfs_cui_item_recover(
518
518
goto abort_error ;
519
519
}
520
520
521
- fake .ri_startblock = refc -> pe_startblock ;
522
- fake .ri_blockcount = refc -> pe_len ;
521
+ fake .ri_startblock = pmap -> pe_startblock ;
522
+ fake .ri_blockcount = pmap -> pe_len ;
523
523
if (!requeue_only )
524
524
error = xfs_trans_log_finish_refcount_update (tp , cudp ,
525
525
& fake , & rcur );
@@ -586,18 +586,18 @@ xfs_cui_item_relog(
586
586
{
587
587
struct xfs_cud_log_item * cudp ;
588
588
struct xfs_cui_log_item * cuip ;
589
- struct xfs_phys_extent * extp ;
589
+ struct xfs_phys_extent * pmap ;
590
590
unsigned int count ;
591
591
592
592
count = CUI_ITEM (intent )-> cui_format .cui_nextents ;
593
- extp = CUI_ITEM (intent )-> cui_format .cui_extents ;
593
+ pmap = CUI_ITEM (intent )-> cui_format .cui_extents ;
594
594
595
595
tp -> t_flags |= XFS_TRANS_DIRTY ;
596
596
cudp = xfs_trans_get_cud (tp , CUI_ITEM (intent ));
597
597
set_bit (XFS_LI_DIRTY , & cudp -> cud_item .li_flags );
598
598
599
599
cuip = xfs_cui_init (tp -> t_mountp , count );
600
- memcpy (cuip -> cui_format .cui_extents , extp , count * sizeof (* extp ));
600
+ memcpy (cuip -> cui_format .cui_extents , pmap , count * sizeof (* pmap ));
601
601
atomic_set (& cuip -> cui_next_extent , count );
602
602
xfs_trans_add_item (tp , & cuip -> cui_item );
603
603
set_bit (XFS_LI_DIRTY , & cuip -> cui_item .li_flags );
0 commit comments