3030STATIC void
3131xchk_superblock_xref (
3232 struct xfs_scrub * sc ,
33- struct xfs_buf * bp )
33+ struct xfs_buf * bp )
3434{
35- struct xfs_owner_info oinfo ;
36- struct xfs_mount * mp = sc -> mp ;
37- xfs_agnumber_t agno = sc -> sm -> sm_agno ;
38- xfs_agblock_t agbno ;
39- int error ;
35+ struct xfs_owner_info oinfo ;
36+ struct xfs_mount * mp = sc -> mp ;
37+ xfs_agnumber_t agno = sc -> sm -> sm_agno ;
38+ xfs_agblock_t agbno ;
39+ int error ;
4040
4141 if (sc -> sm -> sm_flags & XFS_SCRUB_OFLAG_CORRUPT )
4242 return ;
6868xchk_superblock (
6969 struct xfs_scrub * sc )
7070{
71- struct xfs_mount * mp = sc -> mp ;
72- struct xfs_buf * bp ;
73- struct xfs_dsb * sb ;
74- xfs_agnumber_t agno ;
75- uint32_t v2_ok ;
76- __be32 features_mask ;
77- int error ;
78- __be16 vernum_mask ;
71+ struct xfs_mount * mp = sc -> mp ;
72+ struct xfs_buf * bp ;
73+ struct xfs_dsb * sb ;
74+ xfs_agnumber_t agno ;
75+ uint32_t v2_ok ;
76+ __be32 features_mask ;
77+ int error ;
78+ __be16 vernum_mask ;
7979
8080 agno = sc -> sm -> sm_agno ;
8181 if (agno == 0 )
@@ -367,9 +367,9 @@ static inline void
367367xchk_agf_xref_freeblks (
368368 struct xfs_scrub * sc )
369369{
370- struct xfs_agf * agf = XFS_BUF_TO_AGF (sc -> sa .agf_bp );
371- xfs_extlen_t blocks = 0 ;
372- int error ;
370+ struct xfs_agf * agf = XFS_BUF_TO_AGF (sc -> sa .agf_bp );
371+ xfs_extlen_t blocks = 0 ;
372+ int error ;
373373
374374 if (!sc -> sa .bno_cur )
375375 return ;
@@ -387,11 +387,11 @@ static inline void
387387xchk_agf_xref_cntbt (
388388 struct xfs_scrub * sc )
389389{
390- struct xfs_agf * agf = XFS_BUF_TO_AGF (sc -> sa .agf_bp );
391- xfs_agblock_t agbno ;
392- xfs_extlen_t blocks ;
393- int have ;
394- int error ;
390+ struct xfs_agf * agf = XFS_BUF_TO_AGF (sc -> sa .agf_bp );
391+ xfs_agblock_t agbno ;
392+ xfs_extlen_t blocks ;
393+ int have ;
394+ int error ;
395395
396396 if (!sc -> sa .cnt_cur )
397397 return ;
@@ -419,11 +419,11 @@ STATIC void
419419xchk_agf_xref_btreeblks (
420420 struct xfs_scrub * sc )
421421{
422- struct xfs_agf * agf = XFS_BUF_TO_AGF (sc -> sa .agf_bp );
423- struct xfs_mount * mp = sc -> mp ;
424- xfs_agblock_t blocks ;
425- xfs_agblock_t btreeblks ;
426- int error ;
422+ struct xfs_agf * agf = XFS_BUF_TO_AGF (sc -> sa .agf_bp );
423+ struct xfs_mount * mp = sc -> mp ;
424+ xfs_agblock_t blocks ;
425+ xfs_agblock_t btreeblks ;
426+ int error ;
427427
428428 /* Check agf_rmap_blocks; set up for agf_btreeblks check */
429429 if (sc -> sa .rmap_cur ) {
@@ -465,9 +465,9 @@ static inline void
465465xchk_agf_xref_refcblks (
466466 struct xfs_scrub * sc )
467467{
468- struct xfs_agf * agf = XFS_BUF_TO_AGF (sc -> sa .agf_bp );
469- xfs_agblock_t blocks ;
470- int error ;
468+ struct xfs_agf * agf = XFS_BUF_TO_AGF (sc -> sa .agf_bp );
469+ xfs_agblock_t blocks ;
470+ int error ;
471471
472472 if (!sc -> sa .refc_cur )
473473 return ;
@@ -484,10 +484,10 @@ STATIC void
484484xchk_agf_xref (
485485 struct xfs_scrub * sc )
486486{
487- struct xfs_owner_info oinfo ;
488- struct xfs_mount * mp = sc -> mp ;
489- xfs_agblock_t agbno ;
490- int error ;
487+ struct xfs_owner_info oinfo ;
488+ struct xfs_mount * mp = sc -> mp ;
489+ xfs_agblock_t agbno ;
490+ int error ;
491491
492492 if (sc -> sm -> sm_flags & XFS_SCRUB_OFLAG_CORRUPT )
493493 return ;
@@ -516,17 +516,17 @@ int
516516xchk_agf (
517517 struct xfs_scrub * sc )
518518{
519- struct xfs_mount * mp = sc -> mp ;
520- struct xfs_agf * agf ;
521- xfs_agnumber_t agno ;
522- xfs_agblock_t agbno ;
523- xfs_agblock_t eoag ;
524- xfs_agblock_t agfl_first ;
525- xfs_agblock_t agfl_last ;
526- xfs_agblock_t agfl_count ;
527- xfs_agblock_t fl_count ;
528- int level ;
529- int error = 0 ;
519+ struct xfs_mount * mp = sc -> mp ;
520+ struct xfs_agf * agf ;
521+ xfs_agnumber_t agno ;
522+ xfs_agblock_t agbno ;
523+ xfs_agblock_t eoag ;
524+ xfs_agblock_t agfl_first ;
525+ xfs_agblock_t agfl_last ;
526+ xfs_agblock_t agfl_count ;
527+ xfs_agblock_t fl_count ;
528+ int level ;
529+ int error = 0 ;
530530
531531 agno = sc -> sa .agno = sc -> sm -> sm_agno ;
532532 error = xchk_ag_read_headers (sc , agno , & sc -> sa .agi_bp ,
@@ -598,19 +598,19 @@ xchk_agf(
598598/* AGFL */
599599
600600struct xchk_agfl_info {
601- struct xfs_owner_info oinfo ;
602- unsigned int sz_entries ;
603- unsigned int nr_entries ;
604- xfs_agblock_t * entries ;
601+ struct xfs_owner_info oinfo ;
602+ unsigned int sz_entries ;
603+ unsigned int nr_entries ;
604+ xfs_agblock_t * entries ;
605605 struct xfs_scrub * sc ;
606606};
607607
608608/* Cross-reference with the other btrees. */
609609STATIC void
610610xchk_agfl_block_xref (
611611 struct xfs_scrub * sc ,
612- xfs_agblock_t agbno ,
613- struct xfs_owner_info * oinfo )
612+ xfs_agblock_t agbno ,
613+ struct xfs_owner_info * oinfo )
614614{
615615 if (sc -> sm -> sm_flags & XFS_SCRUB_OFLAG_CORRUPT )
616616 return ;
@@ -624,13 +624,13 @@ xchk_agfl_block_xref(
624624/* Scrub an AGFL block. */
625625STATIC int
626626xchk_agfl_block (
627- struct xfs_mount * mp ,
628- xfs_agblock_t agbno ,
629- void * priv )
627+ struct xfs_mount * mp ,
628+ xfs_agblock_t agbno ,
629+ void * priv )
630630{
631- struct xchk_agfl_info * sai = priv ;
631+ struct xchk_agfl_info * sai = priv ;
632632 struct xfs_scrub * sc = sai -> sc ;
633- xfs_agnumber_t agno = sc -> sa .agno ;
633+ xfs_agnumber_t agno = sc -> sa .agno ;
634634
635635 if (xfs_verify_agbno (mp , agno , agbno ) &&
636636 sai -> nr_entries < sai -> sz_entries )
@@ -662,10 +662,10 @@ STATIC void
662662xchk_agfl_xref (
663663 struct xfs_scrub * sc )
664664{
665- struct xfs_owner_info oinfo ;
666- struct xfs_mount * mp = sc -> mp ;
667- xfs_agblock_t agbno ;
668- int error ;
665+ struct xfs_owner_info oinfo ;
666+ struct xfs_mount * mp = sc -> mp ;
667+ xfs_agblock_t agbno ;
668+ int error ;
669669
670670 if (sc -> sm -> sm_flags & XFS_SCRUB_OFLAG_CORRUPT )
671671 return ;
@@ -693,12 +693,12 @@ int
693693xchk_agfl (
694694 struct xfs_scrub * sc )
695695{
696- struct xchk_agfl_info sai ;
697- struct xfs_agf * agf ;
698- xfs_agnumber_t agno ;
699- unsigned int agflcount ;
700- unsigned int i ;
701- int error ;
696+ struct xchk_agfl_info sai ;
697+ struct xfs_agf * agf ;
698+ xfs_agnumber_t agno ;
699+ unsigned int agflcount ;
700+ unsigned int i ;
701+ int error ;
702702
703703 agno = sc -> sa .agno = sc -> sm -> sm_agno ;
704704 error = xchk_ag_read_headers (sc , agno , & sc -> sa .agi_bp ,
@@ -770,10 +770,10 @@ static inline void
770770xchk_agi_xref_icounts (
771771 struct xfs_scrub * sc )
772772{
773- struct xfs_agi * agi = XFS_BUF_TO_AGI (sc -> sa .agi_bp );
774- xfs_agino_t icount ;
775- xfs_agino_t freecount ;
776- int error ;
773+ struct xfs_agi * agi = XFS_BUF_TO_AGI (sc -> sa .agi_bp );
774+ xfs_agino_t icount ;
775+ xfs_agino_t freecount ;
776+ int error ;
777777
778778 if (!sc -> sa .ino_cur )
779779 return ;
@@ -791,10 +791,10 @@ STATIC void
791791xchk_agi_xref (
792792 struct xfs_scrub * sc )
793793{
794- struct xfs_owner_info oinfo ;
795- struct xfs_mount * mp = sc -> mp ;
796- xfs_agblock_t agbno ;
797- int error ;
794+ struct xfs_owner_info oinfo ;
795+ struct xfs_mount * mp = sc -> mp ;
796+ xfs_agblock_t agbno ;
797+ int error ;
798798
799799 if (sc -> sm -> sm_flags & XFS_SCRUB_OFLAG_CORRUPT )
800800 return ;
@@ -820,18 +820,18 @@ int
820820xchk_agi (
821821 struct xfs_scrub * sc )
822822{
823- struct xfs_mount * mp = sc -> mp ;
824- struct xfs_agi * agi ;
825- xfs_agnumber_t agno ;
826- xfs_agblock_t agbno ;
827- xfs_agblock_t eoag ;
828- xfs_agino_t agino ;
829- xfs_agino_t first_agino ;
830- xfs_agino_t last_agino ;
831- xfs_agino_t icount ;
832- int i ;
833- int level ;
834- int error = 0 ;
823+ struct xfs_mount * mp = sc -> mp ;
824+ struct xfs_agi * agi ;
825+ xfs_agnumber_t agno ;
826+ xfs_agblock_t agbno ;
827+ xfs_agblock_t eoag ;
828+ xfs_agino_t agino ;
829+ xfs_agino_t first_agino ;
830+ xfs_agino_t last_agino ;
831+ xfs_agino_t icount ;
832+ int i ;
833+ int level ;
834+ int error = 0 ;
835835
836836 agno = sc -> sa .agno = sc -> sm -> sm_agno ;
837837 error = xchk_ag_read_headers (sc , agno , & sc -> sa .agi_bp ,
0 commit comments