Skip to content

Commit 1d8a748

Browse files
committed
xfs: shorten struct xfs_scrub_context to struct xfs_scrub
Shorten the name of the online fsck context structure. Whitespace damage will be fixed by a subsequent patch. There are no functional changes. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
1 parent b5e2196 commit 1d8a748

25 files changed

Lines changed: 294 additions & 294 deletions

‎fs/xfs/scrub/agheader.c‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/* Cross-reference with the other btrees. */
3030
STATIC void
3131
xchk_superblock_xref(
32-
struct xfs_scrub_context *sc,
32+
struct xfs_scrub *sc,
3333
struct xfs_buf *bp)
3434
{
3535
struct xfs_owner_info oinfo;
@@ -66,7 +66,7 @@ xchk_superblock_xref(
6666
*/
6767
int
6868
xchk_superblock(
69-
struct xfs_scrub_context *sc)
69+
struct xfs_scrub *sc)
7070
{
7171
struct xfs_mount *mp = sc->mp;
7272
struct xfs_buf *bp;
@@ -365,7 +365,7 @@ xchk_agf_record_bno_lengths(
365365
/* Check agf_freeblks */
366366
static inline void
367367
xchk_agf_xref_freeblks(
368-
struct xfs_scrub_context *sc)
368+
struct xfs_scrub *sc)
369369
{
370370
struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp);
371371
xfs_extlen_t blocks = 0;
@@ -385,7 +385,7 @@ xchk_agf_xref_freeblks(
385385
/* Cross reference the AGF with the cntbt (freespace by length btree) */
386386
static inline void
387387
xchk_agf_xref_cntbt(
388-
struct xfs_scrub_context *sc)
388+
struct xfs_scrub *sc)
389389
{
390390
struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp);
391391
xfs_agblock_t agbno;
@@ -417,7 +417,7 @@ xchk_agf_xref_cntbt(
417417
/* Check the btree block counts in the AGF against the btrees. */
418418
STATIC void
419419
xchk_agf_xref_btreeblks(
420-
struct xfs_scrub_context *sc)
420+
struct xfs_scrub *sc)
421421
{
422422
struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp);
423423
struct xfs_mount *mp = sc->mp;
@@ -463,7 +463,7 @@ xchk_agf_xref_btreeblks(
463463
/* Check agf_refcount_blocks against tree size */
464464
static inline void
465465
xchk_agf_xref_refcblks(
466-
struct xfs_scrub_context *sc)
466+
struct xfs_scrub *sc)
467467
{
468468
struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp);
469469
xfs_agblock_t blocks;
@@ -482,7 +482,7 @@ xchk_agf_xref_refcblks(
482482
/* Cross-reference with the other btrees. */
483483
STATIC void
484484
xchk_agf_xref(
485-
struct xfs_scrub_context *sc)
485+
struct xfs_scrub *sc)
486486
{
487487
struct xfs_owner_info oinfo;
488488
struct xfs_mount *mp = sc->mp;
@@ -514,7 +514,7 @@ xchk_agf_xref(
514514
/* Scrub the AGF. */
515515
int
516516
xchk_agf(
517-
struct xfs_scrub_context *sc)
517+
struct xfs_scrub *sc)
518518
{
519519
struct xfs_mount *mp = sc->mp;
520520
struct xfs_agf *agf;
@@ -602,13 +602,13 @@ struct xchk_agfl_info {
602602
unsigned int sz_entries;
603603
unsigned int nr_entries;
604604
xfs_agblock_t *entries;
605-
struct xfs_scrub_context *sc;
605+
struct xfs_scrub *sc;
606606
};
607607

608608
/* Cross-reference with the other btrees. */
609609
STATIC void
610610
xchk_agfl_block_xref(
611-
struct xfs_scrub_context *sc,
611+
struct xfs_scrub *sc,
612612
xfs_agblock_t agbno,
613613
struct xfs_owner_info *oinfo)
614614
{
@@ -629,7 +629,7 @@ xchk_agfl_block(
629629
void *priv)
630630
{
631631
struct xchk_agfl_info *sai = priv;
632-
struct xfs_scrub_context *sc = sai->sc;
632+
struct xfs_scrub *sc = sai->sc;
633633
xfs_agnumber_t agno = sc->sa.agno;
634634

635635
if (xfs_verify_agbno(mp, agno, agbno) &&
@@ -660,7 +660,7 @@ xchk_agblock_cmp(
660660
/* Cross-reference with the other btrees. */
661661
STATIC void
662662
xchk_agfl_xref(
663-
struct xfs_scrub_context *sc)
663+
struct xfs_scrub *sc)
664664
{
665665
struct xfs_owner_info oinfo;
666666
struct xfs_mount *mp = sc->mp;
@@ -691,7 +691,7 @@ xchk_agfl_xref(
691691
/* Scrub the AGFL. */
692692
int
693693
xchk_agfl(
694-
struct xfs_scrub_context *sc)
694+
struct xfs_scrub *sc)
695695
{
696696
struct xchk_agfl_info sai;
697697
struct xfs_agf *agf;
@@ -768,7 +768,7 @@ xchk_agfl(
768768
/* Check agi_count/agi_freecount */
769769
static inline void
770770
xchk_agi_xref_icounts(
771-
struct xfs_scrub_context *sc)
771+
struct xfs_scrub *sc)
772772
{
773773
struct xfs_agi *agi = XFS_BUF_TO_AGI(sc->sa.agi_bp);
774774
xfs_agino_t icount;
@@ -789,7 +789,7 @@ xchk_agi_xref_icounts(
789789
/* Cross-reference with the other btrees. */
790790
STATIC void
791791
xchk_agi_xref(
792-
struct xfs_scrub_context *sc)
792+
struct xfs_scrub *sc)
793793
{
794794
struct xfs_owner_info oinfo;
795795
struct xfs_mount *mp = sc->mp;
@@ -818,7 +818,7 @@ xchk_agi_xref(
818818
/* Scrub the AGI. */
819819
int
820820
xchk_agi(
821-
struct xfs_scrub_context *sc)
821+
struct xfs_scrub *sc)
822822
{
823823
struct xfs_mount *mp = sc->mp;
824824
struct xfs_agi *agi;

‎fs/xfs/scrub/agheader_repair.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/* Repair the superblock. */
3030
int
3131
xrep_superblock(
32-
struct xfs_scrub_context *sc)
32+
struct xfs_scrub *sc)
3333
{
3434
struct xfs_mount *mp = sc->mp;
3535
struct xfs_buf *bp;

‎fs/xfs/scrub/alloc.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030
int
3131
xchk_setup_ag_allocbt(
32-
struct xfs_scrub_context *sc,
32+
struct xfs_scrub *sc,
3333
struct xfs_inode *ip)
3434
{
3535
return xchk_setup_ag_btree(sc, ip, false);
@@ -42,7 +42,7 @@ xchk_setup_ag_allocbt(
4242
*/
4343
STATIC void
4444
xchk_allocbt_xref_other(
45-
struct xfs_scrub_context *sc,
45+
struct xfs_scrub *sc,
4646
xfs_agblock_t agbno,
4747
xfs_extlen_t len)
4848
{
@@ -82,7 +82,7 @@ xchk_allocbt_xref_other(
8282
/* Cross-reference with the other btrees. */
8383
STATIC void
8484
xchk_allocbt_xref(
85-
struct xfs_scrub_context *sc,
85+
struct xfs_scrub *sc,
8686
xfs_agblock_t agbno,
8787
xfs_extlen_t len)
8888
{
@@ -123,7 +123,7 @@ xchk_allocbt_rec(
123123
/* Scrub the freespace btrees for some AG. */
124124
STATIC int
125125
xchk_allocbt(
126-
struct xfs_scrub_context *sc,
126+
struct xfs_scrub *sc,
127127
xfs_btnum_t which)
128128
{
129129
struct xfs_owner_info oinfo;
@@ -136,22 +136,22 @@ xchk_allocbt(
136136

137137
int
138138
xchk_bnobt(
139-
struct xfs_scrub_context *sc)
139+
struct xfs_scrub *sc)
140140
{
141141
return xchk_allocbt(sc, XFS_BTNUM_BNO);
142142
}
143143

144144
int
145145
xchk_cntbt(
146-
struct xfs_scrub_context *sc)
146+
struct xfs_scrub *sc)
147147
{
148148
return xchk_allocbt(sc, XFS_BTNUM_CNT);
149149
}
150150

151151
/* xref check that the extent is not free */
152152
void
153153
xchk_xref_is_used_space(
154-
struct xfs_scrub_context *sc,
154+
struct xfs_scrub *sc,
155155
xfs_agblock_t agbno,
156156
xfs_extlen_t len)
157157
{

‎fs/xfs/scrub/attr.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/* Set us up to scrub an inode's extended attributes. */
3434
int
3535
xchk_setup_xattr(
36-
struct xfs_scrub_context *sc,
36+
struct xfs_scrub *sc,
3737
struct xfs_inode *ip)
3838
{
3939
size_t sz;
@@ -57,7 +57,7 @@ xchk_setup_xattr(
5757

5858
struct xchk_xattr {
5959
struct xfs_attr_list_context context;
60-
struct xfs_scrub_context *sc;
60+
struct xfs_scrub *sc;
6161
};
6262

6363
/*
@@ -127,7 +127,7 @@ xchk_xattr_listent(
127127
*/
128128
STATIC bool
129129
xchk_xattr_set_map(
130-
struct xfs_scrub_context *sc,
130+
struct xfs_scrub *sc,
131131
unsigned long *map,
132132
unsigned int start,
133133
unsigned int len)
@@ -155,7 +155,7 @@ xchk_xattr_set_map(
155155
*/
156156
STATIC bool
157157
xchk_xattr_check_freemap(
158-
struct xfs_scrub_context *sc,
158+
struct xfs_scrub *sc,
159159
unsigned long *map,
160160
struct xfs_attr3_icleaf_hdr *leafhdr)
161161
{
@@ -405,7 +405,7 @@ xchk_xattr_rec(
405405
/* Scrub the extended attribute metadata. */
406406
int
407407
xchk_xattr(
408-
struct xfs_scrub_context *sc)
408+
struct xfs_scrub *sc)
409409
{
410410
struct xchk_xattr sx;
411411
struct attrlist_cursor_kern cursor = { 0 };

‎fs/xfs/scrub/bmap.c‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/* Set us up with an inode's bmap. */
3535
int
3636
xchk_setup_inode_bmap(
37-
struct xfs_scrub_context *sc,
37+
struct xfs_scrub *sc,
3838
struct xfs_inode *ip)
3939
{
4040
int error;
@@ -79,7 +79,7 @@ xchk_setup_inode_bmap(
7979
*/
8080

8181
struct xchk_bmap_info {
82-
struct xfs_scrub_context *sc;
82+
struct xfs_scrub *sc;
8383
xfs_fileoff_t lastoff;
8484
bool is_rt;
8585
bool is_shared;
@@ -391,7 +391,7 @@ xchk_bmapbt_rec(
391391
/* Scan the btree records. */
392392
STATIC int
393393
xchk_bmap_btree(
394-
struct xfs_scrub_context *sc,
394+
struct xfs_scrub *sc,
395395
int whichfork,
396396
struct xchk_bmap_info *info)
397397
{
@@ -409,7 +409,7 @@ xchk_bmap_btree(
409409
}
410410

411411
struct xchk_bmap_check_rmap_info {
412-
struct xfs_scrub_context *sc;
412+
struct xfs_scrub *sc;
413413
int whichfork;
414414
struct xfs_iext_cursor icur;
415415
};
@@ -424,7 +424,7 @@ xchk_bmap_check_rmap(
424424
struct xfs_bmbt_irec irec;
425425
struct xchk_bmap_check_rmap_info *sbcri = priv;
426426
struct xfs_ifork *ifp;
427-
struct xfs_scrub_context *sc = sbcri->sc;
427+
struct xfs_scrub *sc = sbcri->sc;
428428
bool have_map;
429429

430430
/* Is this even the right fork? */
@@ -488,7 +488,7 @@ xchk_bmap_check_rmap(
488488
/* Make sure each rmap has a corresponding bmbt entry. */
489489
STATIC int
490490
xchk_bmap_check_ag_rmaps(
491-
struct xfs_scrub_context *sc,
491+
struct xfs_scrub *sc,
492492
int whichfork,
493493
xfs_agnumber_t agno)
494494
{
@@ -522,7 +522,7 @@ xchk_bmap_check_ag_rmaps(
522522
/* Make sure each rmap has a corresponding bmbt entry. */
523523
STATIC int
524524
xchk_bmap_check_rmaps(
525-
struct xfs_scrub_context *sc,
525+
struct xfs_scrub *sc,
526526
int whichfork)
527527
{
528528
loff_t size;
@@ -579,7 +579,7 @@ xchk_bmap_check_rmaps(
579579
*/
580580
STATIC int
581581
xchk_bmap(
582-
struct xfs_scrub_context *sc,
582+
struct xfs_scrub *sc,
583583
int whichfork)
584584
{
585585
struct xfs_bmbt_irec irec;
@@ -694,23 +694,23 @@ xchk_bmap(
694694
/* Scrub an inode's data fork. */
695695
int
696696
xchk_bmap_data(
697-
struct xfs_scrub_context *sc)
697+
struct xfs_scrub *sc)
698698
{
699699
return xchk_bmap(sc, XFS_DATA_FORK);
700700
}
701701

702702
/* Scrub an inode's attr fork. */
703703
int
704704
xchk_bmap_attr(
705-
struct xfs_scrub_context *sc)
705+
struct xfs_scrub *sc)
706706
{
707707
return xchk_bmap(sc, XFS_ATTR_FORK);
708708
}
709709

710710
/* Scrub an inode's CoW fork. */
711711
int
712712
xchk_bmap_cow(
713-
struct xfs_scrub_context *sc)
713+
struct xfs_scrub *sc)
714714
{
715715
if (!xfs_is_reflink_inode(sc->ip))
716716
return -ENOENT;

0 commit comments

Comments
 (0)