]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove the xfs_dinode_t typedef
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Apr 2022 19:39:02 +0000 (15:39 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 28 Apr 2022 19:39:02 +0000 (15:39 -0400)
Source kernel commit: de38db7239c4bd2f37ebfcb8a5f22b4e8e657737

Remove the few leftover instances of the xfs_dinode_t typedef.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
24 files changed:
db/bmap.c
db/bmroot.c
db/check.c
db/field.c
db/frag.c
db/inode.c
db/metadump.c
estimate/xfs_estimate.c
libxfs/util.c
libxfs/xfs_format.h
libxfs/xfs_inode_buf.c
libxfs/xfs_inode_fork.c
repair/attr_repair.c
repair/attr_repair.h
repair/da_util.h
repair/dino_chunks.c
repair/dinode.c
repair/dinode.h
repair/dir2.c
repair/dir2.h
repair/incore.h
repair/prefetch.c
repair/rt.c
repair/rt.h

index fdc70e95eb9f58c3e597edeef216c318ba3bef07..53ef937ffa1df11b731966b9ca518689a9d9c304 100644 (file)
--- a/db/bmap.c
+++ b/db/bmap.c
@@ -38,7 +38,7 @@ bmap(
        struct xfs_btree_block  *block;
        xfs_fsblock_t           bno;
        xfs_fileoff_t           curoffset;
-       xfs_dinode_t            *dip;
+       struct xfs_dinode       *dip;
        xfs_fileoff_t           eoffset;
        xfs_bmbt_rec_t          *ep;
        enum xfs_dinode_fmt     fmt;
@@ -121,20 +121,20 @@ bmap(
 
 static int
 bmap_f(
-       int             argc,
-       char            **argv)
+       int                     argc,
+       char                    **argv)
 {
-       int             afork = 0;
-       bmap_ext_t      be;
-       int             c;
-       xfs_fileoff_t   co, cosave;
-       int             dfork = 0;
-       xfs_dinode_t    *dip;
-       xfs_fileoff_t   eo;
-       xfs_filblks_t   len;
-       int             nex;
-       char            *p;
-       int             whichfork;
+       int                     afork = 0;
+       bmap_ext_t              be;
+       int                     c;
+       xfs_fileoff_t           co, cosave;
+       int                     dfork = 0;
+       struct xfs_dinode       *dip;
+       xfs_fileoff_t           eo;
+       xfs_filblks_t           len;
+       int                     nex;
+       char                    *p;
+       int                     whichfork;
 
        if (iocur_top->ino == NULLFSINO) {
                dbprintf(_("no current inode\n"));
index f859ac3cbe6bda8d669d9e651e2c6b9447f663ea..246e390a8a39e788131ac9cac816f324b13c70fe 100644 (file)
@@ -61,7 +61,7 @@ bmroota_key_count(
 {
        xfs_bmdr_block_t        *block;
 #ifdef DEBUG
-       xfs_dinode_t            *dip = obj;
+       struct xfs_dinode       *dip = obj;
 #endif
 
        ASSERT(bitoffs(startoff) == 0);
@@ -80,7 +80,7 @@ bmroota_key_offset(
 {
        xfs_bmdr_block_t        *block;
 #ifdef DEBUG
-       xfs_dinode_t            *dip = obj;
+       struct xfs_dinode       *dip = obj;
 #endif
        xfs_bmdr_key_t          *kp;
 
@@ -100,7 +100,7 @@ bmroota_ptr_count(
 {
        xfs_bmdr_block_t        *block;
 #ifdef DEBUG
-       xfs_dinode_t            *dip = obj;
+       struct xfs_dinode       *dip = obj;
 #endif
 
        ASSERT(bitoffs(startoff) == 0);
@@ -118,7 +118,7 @@ bmroota_ptr_offset(
        int                     idx)
 {
        xfs_bmdr_block_t        *block;
-       xfs_dinode_t            *dip;
+       struct xfs_dinode       *dip;
        xfs_bmdr_ptr_t          *pp;
 
        ASSERT(bitoffs(startoff) == 0);
@@ -138,7 +138,7 @@ bmroota_size(
        int                     startoff,
        int                     idx)
 {
-       xfs_dinode_t            *dip;
+       struct xfs_dinode       *dip;
 #ifdef DEBUG
        xfs_bmdr_block_t        *block;
 #endif
@@ -161,7 +161,7 @@ bmrootd_key_count(
 {
        xfs_bmdr_block_t        *block;
 #ifdef DEBUG
-       xfs_dinode_t            *dip = obj;
+       struct xfs_dinode       *dip = obj;
 #endif
 
        ASSERT(bitoffs(startoff) == 0);
@@ -196,7 +196,7 @@ bmrootd_ptr_count(
 {
        xfs_bmdr_block_t        *block;
 #ifdef DEBUG
-       xfs_dinode_t            *dip = obj;
+       struct xfs_dinode       *dip = obj;
 #endif
 
        ASSERT(bitoffs(startoff) == 0);
@@ -215,7 +215,7 @@ bmrootd_ptr_offset(
 {
        xfs_bmdr_block_t        *block;
        xfs_bmdr_ptr_t          *pp;
-       xfs_dinode_t            *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -233,7 +233,7 @@ bmrootd_size(
        int                     startoff,
        int                     idx)
 {
-       xfs_dinode_t            *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
index 368f80c0b68f9979f1bcbef05a07cd5a7ccd1823..decfafc578464bd066b64f0dcea4574ac4935402 100644 (file)
@@ -276,7 +276,7 @@ static void         process_bmbt_reclist(xfs_bmbt_rec_t *rp, int numrecs,
                                             dbm_t type, inodata_t *id,
                                             xfs_rfsblock_t *tot,
                                             blkmap_t **blkmapp);
-static void            process_btinode(inodata_t *id, xfs_dinode_t *dip,
+static void            process_btinode(inodata_t *id, struct xfs_dinode *dip,
                                        dbm_t type, xfs_rfsblock_t *totd,
                                        xfs_rfsblock_t *toti, xfs_extnum_t *nex,
                                        blkmap_t **blkmapp, int whichfork);
@@ -287,18 +287,18 @@ static xfs_ino_t  process_data_dir_v2(int *dot, int *dotdot,
 static xfs_dir2_data_free_t *process_data_dir_v2_freefind(
                                        struct xfs_dir2_data_hdr *data,
                                        struct xfs_dir2_data_unused *dup);
-static void            process_dir(xfs_dinode_t *dip, blkmap_t *blkmap,
+static void            process_dir(struct xfs_dinode *dip, blkmap_t *blkmap,
                                    inodata_t *id);
-static int             process_dir_v2(xfs_dinode_t *dip, blkmap_t *blkmap,
+static int             process_dir_v2(struct xfs_dinode *dip, blkmap_t *blkmap,
                                       int *dot, int *dotdot, inodata_t *id,
                                       xfs_ino_t *parent);
-static void            process_exinode(inodata_t *id, xfs_dinode_t *dip,
+static void            process_exinode(inodata_t *id, struct xfs_dinode *dip,
                                        dbm_t type, xfs_rfsblock_t *totd,
                                        xfs_rfsblock_t *toti, xfs_extnum_t *nex,
                                        blkmap_t **blkmapp, int whichfork);
 static void            process_inode(xfs_agf_t *agf, xfs_agino_t agino,
-                                     xfs_dinode_t *dip, int isfree);
-static void            process_lclinode(inodata_t *id, xfs_dinode_t *dip,
+                                     struct xfs_dinode *dip, int isfree);
+static void            process_lclinode(inodata_t *id, struct xfs_dinode *dip,
                                         dbm_t type, xfs_rfsblock_t *totd,
                                         xfs_rfsblock_t *toti, xfs_extnum_t *nex,
                                         blkmap_t **blkmapp, int whichfork);
@@ -315,7 +315,7 @@ static void         process_quota(qtype_t qtype, inodata_t *id,
                                      blkmap_t *blkmap);
 static void            process_rtbitmap(blkmap_t *blkmap);
 static void            process_rtsummary(blkmap_t *blkmap);
-static xfs_ino_t       process_sf_dir_v2(xfs_dinode_t *dip, int *dot,
+static xfs_ino_t       process_sf_dir_v2(struct xfs_dinode *dip, int *dot,
                                          int *dotdot, inodata_t *id);
 static void            quota_add(xfs_dqid_t *p, xfs_dqid_t *g, xfs_dqid_t *u,
                                  int dq, xfs_qcnt_t bc, xfs_qcnt_t ic,
@@ -2272,7 +2272,7 @@ process_bmbt_reclist(
 static void
 process_btinode(
        inodata_t               *id,
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        dbm_t                   type,
        xfs_rfsblock_t          *totd,
        xfs_rfsblock_t          *toti,
@@ -2626,14 +2626,14 @@ process_data_dir_v2_freefind(
 
 static void
 process_dir(
-       xfs_dinode_t    *dip,
-       blkmap_t        *blkmap,
-       inodata_t       *id)
+       struct xfs_dinode       *dip,
+       blkmap_t                *blkmap,
+       inodata_t               *id)
 {
-       xfs_fsblock_t   bno;
-       int             dot;
-       int             dotdot;
-       xfs_ino_t       parent;
+       xfs_fsblock_t           bno;
+       int                     dot;
+       int                     dotdot;
+       xfs_ino_t               parent;
 
        dot = dotdot = 0;
        if (process_dir_v2(dip, blkmap, &dot, &dotdot, id, &parent))
@@ -2665,15 +2665,15 @@ process_dir(
 
 static int
 process_dir_v2(
-       xfs_dinode_t    *dip,
-       blkmap_t        *blkmap,
-       int             *dot,
-       int             *dotdot,
-       inodata_t       *id,
-       xfs_ino_t       *parent)
+       struct xfs_dinode       *dip,
+       blkmap_t                *blkmap,
+       int                     *dot,
+       int                     *dotdot,
+       inodata_t               *id,
+       xfs_ino_t               *parent)
 {
-       xfs_fileoff_t   last = 0;
-       xfs_fsize_t     size = be64_to_cpu(dip->di_size);
+       xfs_fileoff_t           last = 0;
+       xfs_fsize_t             size = be64_to_cpu(dip->di_size);
 
        if (blkmap)
                last = blkmap_last_off(blkmap);
@@ -2702,7 +2702,7 @@ process_dir_v2(
 static void
 process_exinode(
        inodata_t               *id,
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        dbm_t                   type,
        xfs_rfsblock_t          *totd,
        xfs_rfsblock_t          *toti,
@@ -2729,7 +2729,7 @@ static void
 process_inode(
        xfs_agf_t               *agf,
        xfs_agino_t             agino,
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        int                     isfree)
 {
        blkmap_t                *blkmap;
@@ -3038,7 +3038,7 @@ process_inode(
 static void
 process_lclinode(
        inodata_t                       *id,
-       xfs_dinode_t                    *dip,
+       struct xfs_dinode               *dip,
        dbm_t                           type,
        xfs_rfsblock_t                  *totd,
        xfs_rfsblock_t                  *toti,
@@ -3697,7 +3697,7 @@ process_rtsummary(
 
 static xfs_ino_t
 process_sf_dir_v2(
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        int                     *dot,
        int                     *dotdot,
        inodata_t               *id)
@@ -4576,7 +4576,7 @@ scanfunc_ino(
                                        isfree = XFS_INOBT_IS_FREE_DISK(&rp[i], ioff + j);
                                        if (isfree)
                                                nfree++;
-                                       dip = (xfs_dinode_t *)((char *)iocur_top->data +
+                                       dip = (struct xfs_dinode *)((char *)iocur_top->data +
                                                ((off + j) << mp->m_sb.sb_inodelog));
                                        process_inode(agf, agino + ioff + j, dip, isfree);
                                }
index 51268938a9d31c733f9fbc3a045cee19576e2c2a..90d3609a05477a309920d0fc5d6c155054152705 100644 (file)
@@ -203,13 +203,13 @@ const ftattr_t    ftattrtab[] = {
        { FLDT_DINODE_A, "dinode_a", NULL, (char *)inode_a_flds, inode_a_size,
          FTARG_SIZE|FTARG_OKEMPTY, NULL, inode_a_flds },
        { FLDT_DINODE_CORE, "dinode_core", NULL, (char *)inode_core_flds,
-         SI(bitsz(xfs_dinode_t)), 0, NULL, inode_core_flds },
+         SI(bitsz(struct xfs_dinode)), 0, NULL, inode_core_flds },
        { FLDT_DINODE_FMT, "dinode_fmt", fp_dinode_fmt, NULL,
          SI(bitsz(int8_t)), 0, NULL, NULL },
        { FLDT_DINODE_U, "dinode_u", NULL, (char *)inode_u_flds, inode_u_size,
          FTARG_SIZE|FTARG_OKEMPTY, NULL, inode_u_flds },
        { FLDT_DINODE_V3, "dinode_v3", NULL, (char *)inode_v3_flds,
-         SI(bitsz(xfs_dinode_t)), 0, NULL, inode_v3_flds },
+         SI(bitsz(struct xfs_dinode)), 0, NULL, inode_v3_flds },
 
 /* dir v2 fields */
        { FLDT_DIR2, "dir2", NULL, (char *)dir2_flds, dir2_size, FTARG_SIZE,
index 9bc63614c7bf1f432e639d8c9f4ed0aa41976231..022da96a74b93b633a2dc48c4ff7315d717459ae 100644 (file)
--- a/db/frag.c
+++ b/db/frag.c
@@ -56,13 +56,13 @@ static int          frag_f(int argc, char **argv);
 static int             init(int argc, char **argv);
 static void            process_bmbt_reclist(xfs_bmbt_rec_t *rp, int numrecs,
                                             extmap_t **extmapp);
-static void            process_btinode(xfs_dinode_t *dip, extmap_t **extmapp,
-                                       int whichfork);
-static void            process_exinode(xfs_dinode_t *dip, extmap_t **extmapp,
-                                       int whichfork);
-static void            process_fork(xfs_dinode_t *dip, int whichfork);
+static void            process_btinode(struct xfs_dinode *dip,
+                                       extmap_t **extmapp, int whichfork);
+static void            process_exinode(struct xfs_dinode *dip,
+                                       extmap_t **extmapp, int whichfork);
+static void            process_fork(struct xfs_dinode *dip, int whichfork);
 static void            process_inode(xfs_agf_t *agf, xfs_agino_t agino,
-                                     xfs_dinode_t *dip);
+                                     struct xfs_dinode *dip);
 static void            scan_ag(xfs_agnumber_t agno);
 static void            scan_lbtree(xfs_fsblock_t root, int nlevels,
                                    scan_lbtree_f_t func, extmap_t **extmapp,
@@ -233,7 +233,7 @@ process_bmbt_reclist(
 
 static void
 process_btinode(
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        extmap_t                **extmapp,
        int                     whichfork)
 {
@@ -257,7 +257,7 @@ process_btinode(
 
 static void
 process_exinode(
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        extmap_t                **extmapp,
        int                     whichfork)
 {
@@ -269,11 +269,11 @@ process_exinode(
 
 static void
 process_fork(
-       xfs_dinode_t    *dip,
-       int             whichfork)
+       struct xfs_dinode       *dip,
+       int                     whichfork)
 {
-       extmap_t        *extmap;
-       int             nex;
+       extmap_t                *extmap;
+       int                     nex;
 
        nex = XFS_DFORK_NEXTENTS(dip, whichfork);
        if (!nex)
@@ -296,7 +296,7 @@ static void
 process_inode(
        xfs_agf_t               *agf,
        xfs_agino_t             agino,
-       xfs_dinode_t            *dip)
+       struct xfs_dinode       *dip)
 {
        uint64_t                actual;
        uint64_t                ideal;
@@ -509,7 +509,7 @@ scanfunc_ino(
                                for (j = 0; j < inodes_per_buf; j++) {
                                        if (XFS_INOBT_IS_FREE_DISK(&rp[i], ioff + j))
                                                continue;
-                                       dip = (xfs_dinode_t *)((char *)iocur_top->data +
+                                       dip = (struct xfs_dinode *)((char *)iocur_top->data +
                                                ((off + j) << mp->m_sb.sb_inodelog));
                                        process_inode(agf, agino + ioff + j, dip);
                                }
index 22bc63a8aa715ccfcf4643477856bb513c0b5069..8957ec5ef2b9c85a1e99e10ef733d9bb3306aeb6 100644 (file)
@@ -52,7 +52,7 @@ const field_t inode_crc_hfld[] = {
 };
 
 /* XXX: fix this up! */
-#define        OFF(f)  bitize(offsetof(xfs_dinode_t, di_ ## f))
+#define        OFF(f)  bitize(offsetof(struct xfs_dinode, di_ ## f))
 const field_t  inode_flds[] = {
        { "core", FLDT_DINODE_CORE, OI(OFF(magic)), C1, 0, TYP_NONE },
        { "next_unlinked", FLDT_AGINO, OI(OFF(next_unlinked)), C1, 0,
@@ -74,7 +74,7 @@ const field_t inode_crc_flds[] = {
 };
 
 
-#define        COFF(f) bitize(offsetof(xfs_dinode_t, di_ ## f))
+#define        COFF(f) bitize(offsetof(struct xfs_dinode, di_ ## f))
 const field_t  inode_core_flds[] = {
        { "magic", FLDT_UINT16X, OI(COFF(magic)), C1, 0, TYP_NONE },
        { "mode", FLDT_UINT16O, OI(COFF(mode)), C1, 0, TYP_NONE },
@@ -247,10 +247,10 @@ fp_dinode_fmt(
 
 static int
 inode_a_bmbt_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -263,10 +263,10 @@ inode_a_bmbt_count(
 
 static int
 inode_a_bmx_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -280,10 +280,10 @@ inode_a_bmx_count(
 
 static int
 inode_a_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(startoff == 0);
        dip = obj;
@@ -292,11 +292,11 @@ inode_a_count(
 
 static int
 inode_a_offset(
-       void            *obj,
-       int             startoff,
-       int             idx)
+       void                    *obj,
+       int                     startoff,
+       int                     idx)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(startoff == 0);
        ASSERT(idx == 0);
@@ -307,10 +307,10 @@ inode_a_offset(
 
 static int
 inode_a_sfattr_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -328,7 +328,7 @@ inode_a_size(
        int                             idx)
 {
        struct xfs_attr_shortform       *asf;
-       xfs_dinode_t                    *dip;
+       struct xfs_dinode               *dip;
 
        ASSERT(startoff == 0);
        ASSERT(idx == 0);
@@ -349,10 +349,10 @@ inode_a_size(
 
 static int
 inode_core_nlinkv1_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dic;
+       struct xfs_dinode       *dic;
 
        ASSERT(startoff == 0);
        ASSERT(obj == iocur_top->data);
@@ -362,10 +362,10 @@ inode_core_nlinkv1_count(
 
 static int
 inode_core_nlinkv2_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dic;
+       struct xfs_dinode       *dic;
 
        ASSERT(startoff == 0);
        ASSERT(obj == iocur_top->data);
@@ -375,10 +375,10 @@ inode_core_nlinkv2_count(
 
 static int
 inode_core_onlink_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dic;
+       struct xfs_dinode       *dic;
 
        ASSERT(startoff == 0);
        ASSERT(obj == iocur_top->data);
@@ -388,10 +388,10 @@ inode_core_onlink_count(
 
 static int
 inode_core_projid_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dic;
+       struct xfs_dinode       *dic;
 
        ASSERT(startoff == 0);
        ASSERT(obj == iocur_top->data);
@@ -462,11 +462,11 @@ inode_size(
 
 static int
 inode_u_offset(
-       void            *obj,
-       int             startoff,
-       int             idx)
+       void                    *obj,
+       int                     startoff,
+       int                     idx)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(startoff == 0);
        ASSERT(idx == 0);
@@ -476,10 +476,10 @@ inode_u_offset(
 
 static int
 inode_u_bmbt_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -490,10 +490,10 @@ inode_u_bmbt_count(
 
 static int
 inode_u_bmx_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -505,10 +505,10 @@ inode_u_bmx_count(
 
 static int
 inode_u_c_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -521,10 +521,10 @@ inode_u_c_count(
 
 static int
 inode_u_dev_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -535,10 +535,10 @@ inode_u_dev_count(
 
 static int
 inode_u_muuid_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -549,10 +549,10 @@ inode_u_muuid_count(
 
 static int
 inode_u_sfdir2_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -565,10 +565,10 @@ inode_u_sfdir2_count(
 
 static int
 inode_u_sfdir3_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -581,11 +581,11 @@ inode_u_sfdir3_count(
 
 int
 inode_u_size(
-       void            *obj,
-       int             startoff,
-       int             idx)
+       void                    *obj,
+       int                     startoff,
+       int                     idx)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(startoff == 0);
        ASSERT(idx == 0);
@@ -609,10 +609,10 @@ inode_u_size(
 
 static int
 inode_u_symlink_count(
-       void            *obj,
-       int             startoff)
+       void                    *obj,
+       int                     startoff)
 {
-       xfs_dinode_t    *dip;
+       struct xfs_dinode       *dip;
 
        ASSERT(bitoffs(startoff) == 0);
        ASSERT(obj == iocur_top->data);
@@ -633,16 +633,16 @@ inode_u_symlink_count(
  */
 void
 set_cur_inode(
-       xfs_ino_t       ino)
+       xfs_ino_t               ino)
 {
-       xfs_agblock_t   agbno;
-       xfs_agino_t     agino;
-       xfs_agnumber_t  agno;
-       xfs_dinode_t    *dip;
-       int             offset;
-       int             numblks = blkbb;
-       xfs_agblock_t   cluster_agbno;
-       struct xfs_ino_geometry *igeo = M_IGEO(mp);
+       xfs_agblock_t           agbno;
+       xfs_agino_t             agino;
+       xfs_agnumber_t          agno;
+       struct xfs_dinode       *dip;
+       int                     offset;
+       int                     numblks = blkbb;
+       xfs_agblock_t           cluster_agbno;
+       struct xfs_ino_geometry *igeo = M_IGEO(mp);
 
 
        agno = XFS_INO_TO_AGNO(mp, ino);
index dbc6a708827d10b6aa95460538012bece78e1c59..d71d3e983d03ee7a4560bc14d4c743356f5eb39a 100644 (file)
@@ -1234,7 +1234,7 @@ generate_obfuscated_name(
 
 static void
 process_sf_dir(
-       xfs_dinode_t            *dip)
+       struct xfs_dinode       *dip)
 {
        struct xfs_dir2_sf_hdr  *sfp;
        xfs_dir2_sf_entry_t     *sfep;
@@ -1339,7 +1339,7 @@ obfuscate_path_components(
 
 static void
 process_sf_symlink(
-       xfs_dinode_t            *dip)
+       struct xfs_dinode       *dip)
 {
        uint64_t                len;
        char                    *buf;
@@ -1363,7 +1363,7 @@ process_sf_symlink(
 
 static void
 process_sf_attr(
-       xfs_dinode_t                    *dip)
+       struct xfs_dinode               *dip)
 {
        /*
         * with extended attributes, obfuscate the names and fill the actual
@@ -2193,7 +2193,7 @@ scanfunc_bmap(
 
 static int
 process_btinode(
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        typnm_t                 itype)
 {
        xfs_bmdr_block_t        *dib;
@@ -2273,7 +2273,7 @@ process_btinode(
 
 static int
 process_exinode(
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        typnm_t                 itype)
 {
        int                     whichfork;
@@ -2303,7 +2303,7 @@ process_exinode(
 
 static int
 process_inode_data(
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        typnm_t                 itype)
 {
        switch (dip->di_format) {
@@ -2333,7 +2333,7 @@ process_inode_data(
 
 static int
 process_dev_inode(
-       xfs_dinode_t            *dip)
+       struct xfs_dinode               *dip)
 {
        if (XFS_DFORK_NEXTENTS(dip, XFS_DATA_FORK)) {
                if (show_warnings)
@@ -2362,7 +2362,7 @@ static int
 process_inode(
        xfs_agnumber_t          agno,
        xfs_agino_t             agino,
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        bool                    free_inode)
 {
        int                     success;
@@ -2534,9 +2534,9 @@ copy_inode_chunk(
                }
 
                for (i = 0; i < inodes_per_buf; i++) {
-                       xfs_dinode_t    *dip;
+                       struct xfs_dinode       *dip;
 
-                       dip = (xfs_dinode_t *)((char *)iocur_top->data +
+                       dip = (struct xfs_dinode *)((char *)iocur_top->data +
                                        ((off + i) << mp->m_sb.sb_inodelog));
 
                        /* process_inode handles free inodes, too */
index 9e01ccec004eca5b2742da5c87ae4a8c2f4ce7d4..5c7dbccd932124833c5932a87d5794f711fcae8e 100644 (file)
@@ -214,7 +214,7 @@ ffn(const char *path, const struct stat *stb, int flags, struct FTW *f)
                nfiles++;
                break;
        case S_IFLNK:                   /* symbolic links */
-               if (stb->st_size >= (INODESIZE - (sizeof(xfs_dinode_t)+4)))
+               if (stb->st_size >= (INODESIZE - (sizeof(struct xfs_dinode)+4)))
                        fullblocks+=FBLOCKS(stb->st_size + blocksize-1);
                nslinks++;
                break;
index 69cc477c25ed61919605ba782fdf2e037dcb69c8..86deffae24a0f7a89807eb1474e05337a3a551ce 100644 (file)
@@ -336,7 +336,7 @@ libxfs_iflush_int(
        struct xfs_buf                  *bp)
 {
        struct xfs_inode_log_item       *iip;
-       xfs_dinode_t                    *dip;
+       struct xfs_dinode               *dip;
        xfs_mount_t                     *mp;
 
        ASSERT(ip->i_df.if_format != XFS_DINODE_FMT_BTREE ||
index 2d7057b7984b6ef9f95b00d90ac5f76c80b075c9..347c291c9348440ee7633fa908cfdbb16614dc13 100644 (file)
@@ -780,7 +780,7 @@ static inline time64_t xfs_bigtime_to_unix(uint64_t ondisk_seconds)
  * padding field for v3 inodes.
  */
 #define        XFS_DINODE_MAGIC                0x494e  /* 'IN' */
-typedef struct xfs_dinode {
+struct xfs_dinode {
        __be16          di_magic;       /* inode magic # = XFS_DINODE_MAGIC */
        __be16          di_mode;        /* mode and type of file */
        __u8            di_version;     /* inode version */
@@ -825,7 +825,7 @@ typedef struct xfs_dinode {
        uuid_t          di_uuid;        /* UUID of the filesystem */
 
        /* structure must be padded to 64 bit alignment */
-} xfs_dinode_t;
+};
 
 #define XFS_DINODE_CRC_OFF     offsetof(struct xfs_dinode, di_crc)
 
index 68bd5f52b3df5d8e20c4a9e6187f7243916e0285..e22e49a4e2a8b7887e27963363e86b1a1968a362 100644 (file)
@@ -48,9 +48,9 @@ xfs_inode_buf_verify(
        agno = xfs_daddr_to_agno(mp, xfs_buf_daddr(bp));
        ni = XFS_BB_TO_FSB(mp, bp->b_length) * mp->m_sb.sb_inopblock;
        for (i = 0; i < ni; i++) {
-               int             di_ok;
-               xfs_dinode_t    *dip;
-               xfs_agino_t     unlinked_ino;
+               struct xfs_dinode       *dip;
+               xfs_agino_t             unlinked_ino;
+               int                     di_ok;
 
                dip = xfs_buf_offset(bp, (i << mp->m_sb.sb_inodelog));
                unlinked_ino = be32_to_cpu(dip->di_next_unlinked);
index 1a49c41f3a46e55d9be91d097d66f06686f3332f..bd581fe8257aefcc71d16c7a483275de755446c2 100644 (file)
@@ -65,10 +65,10 @@ xfs_init_local_fork(
  */
 STATIC int
 xfs_iformat_local(
-       xfs_inode_t     *ip,
-       xfs_dinode_t    *dip,
-       int             whichfork,
-       int             size)
+       struct xfs_inode        *ip,
+       struct xfs_dinode       *dip,
+       int                     whichfork,
+       int                     size)
 {
        /*
         * If the size is unreasonable, then something
@@ -160,8 +160,8 @@ xfs_iformat_extents(
  */
 STATIC int
 xfs_iformat_btree(
-       xfs_inode_t             *ip,
-       xfs_dinode_t            *dip,
+       struct xfs_inode        *ip,
+       struct xfs_dinode       *dip,
        int                     whichfork)
 {
        struct xfs_mount        *mp = ip->i_mount;
@@ -578,8 +578,8 @@ xfs_iextents_copy(
  */
 void
 xfs_iflush_fork(
-       xfs_inode_t             *ip,
-       xfs_dinode_t            *dip,
+       struct xfs_inode        *ip,
+       struct xfs_dinode       *dip,
        struct xfs_inode_log_item *iip,
        int                     whichfork)
 {
index 927dd0953bfaecf7371ea9c86f7940b16c886269..5fd31a18b50788f8033cb688c2b7988636c36983 100644 (file)
@@ -207,7 +207,7 @@ static int
 process_shortform_attr(
        struct xfs_mount                *mp,
        xfs_ino_t                       ino,
-       xfs_dinode_t                    *dip,
+       struct xfs_dinode               *dip,
        int                             *repair)
 {
        struct xfs_attr_shortform       *asf;
@@ -879,14 +879,14 @@ error_out:
  */
 static int
 process_node_attr(
-       xfs_mount_t     *mp,
-       xfs_ino_t       ino,
-       xfs_dinode_t    *dip,
-       blkmap_t        *blkmap)
+       xfs_mount_t             *mp,
+       xfs_ino_t               ino,
+       struct xfs_dinode       *dip,
+       blkmap_t                *blkmap)
 {
-       xfs_dablk_t                     bno;
-       int                             error = 0;
-       da_bt_cursor_t                  da_cursor;
+       xfs_dablk_t             bno;
+       int                     error = 0;
+       da_bt_cursor_t          da_cursor;
 
        /*
         * try again -- traverse down left-side of tree until we hit
@@ -1203,14 +1203,14 @@ xfs_acl_from_disk(
  */
 int
 process_attributes(
-       xfs_mount_t     *mp,
-       xfs_ino_t       ino,
-       xfs_dinode_t    *dip,
-       blkmap_t        *blkmap,
-       int             *repair)  /* returned if we did repair */
+       xfs_mount_t             *mp,
+       xfs_ino_t               ino,
+       struct xfs_dinode       *dip,
+       blkmap_t                *blkmap,
+       int                     *repair)  /* returned if we did repair */
 {
-       int             err;
-       __u8            aformat = dip->di_aformat;
+       int                     err;
+       __u8                    aformat = dip->di_aformat;
 #ifdef DEBUG
        struct xfs_attr_shortform *asf;
 
index 2771d7eb56c34ef862fb2aea754c12e81b6a167f..dc53d8a62768700b28bc37a540accff56e6bc574 100644 (file)
@@ -97,7 +97,7 @@ typedef struct xfs_cap_set {
  * External functions
  */
 struct blkmap;
-extern int process_attributes (xfs_mount_t *, xfs_ino_t, xfs_dinode_t *,
+extern int process_attributes (xfs_mount_t *, xfs_ino_t, struct xfs_dinode *,
                                struct blkmap *, int *);
 
 #endif /* _XR_ATTRREPAIR_H */
index 2e26178c2511063abc19a965f4ff91f3193626a7..e455f14f527a0bb68a74ff833c543a7c0b6c6758 100644 (file)
@@ -19,7 +19,7 @@ typedef struct da_bt_cursor {
        int                     active; /* highest level in tree (# levels-1) */
        xfs_ino_t               ino;
        xfs_dablk_t             greatest_bno;
-       xfs_dinode_t            *dip;
+       struct xfs_dinode       *dip;
        struct da_level_state   level[XFS_DA_NODE_MAXDEPTH];
        struct blkmap           *blkmap;
 } da_bt_cursor_t;
index 51cd06f0d02d286a567d7fe07267683ebce674c9..11b0eb5f219f69eec380160e41cd818f8ae39b99 100644 (file)
  * means only the basic inode info is checked, no fork checks.
  */
 static int
-check_aginode_block(xfs_mount_t        *mp,
-                       xfs_agnumber_t  agno,
-                       xfs_agblock_t   agbno)
+check_aginode_block(
+       xfs_mount_t             *mp,
+       xfs_agnumber_t          agno,
+       xfs_agblock_t           agbno)
 {
-
-       xfs_dinode_t    *dino_p;
-       int             i;
-       int             cnt = 0;
-       struct xfs_buf  *bp;
-       int             error;
+       struct xfs_dinode       *dino_p;
+       int                     i;
+       int                     cnt = 0;
+       struct xfs_buf          *bp;
+       int                     error;
 
        /*
         * it's ok to read these possible inode blocks in one at
@@ -598,7 +598,7 @@ process_inode_chunk(
        xfs_ino_t               parent;
        ino_tree_node_t         *ino_rec;
        struct xfs_buf          **bplist;
-       xfs_dinode_t            *dino;
+       struct xfs_dinode       *dino;
        int                     icnt;
        int                     status;
        int                     bp_found;
index 4da39dccf6b2b5b148c76b0f96c79a7e504d0bc4..5600ab32b3f32cd815471e5a4964e4f8c26d6184 100644 (file)
@@ -57,7 +57,10 @@ get_forkname(int whichfork)
  */
 
 static int
-clear_dinode_attr(xfs_mount_t *mp, xfs_dinode_t *dino, xfs_ino_t ino_num)
+clear_dinode_attr(
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dino,
+       xfs_ino_t               ino_num)
 {
        ASSERT(dino->di_forkoff != 0);
 
@@ -106,7 +109,10 @@ _("would have cleared inode %" PRIu64 " attributes\n"), ino_num);
 }
 
 static void
-clear_dinode_core(struct xfs_mount *mp, xfs_dinode_t *dinoc, xfs_ino_t ino_num)
+clear_dinode_core(
+       struct xfs_mount        *mp,
+       struct xfs_dinode       *dinoc,
+       xfs_ino_t               ino_num)
 {
        memset(dinoc, 0, sizeof(*dinoc));
        dinoc->di_magic = cpu_to_be16(XFS_DINODE_MAGIC);
@@ -126,7 +132,7 @@ clear_dinode_core(struct xfs_mount *mp, xfs_dinode_t *dinoc, xfs_ino_t ino_num)
 }
 
 static void
-clear_dinode_unlinked(xfs_mount_t *mp, xfs_dinode_t *dino)
+clear_dinode_unlinked(xfs_mount_t *mp, struct xfs_dinode *dino)
 {
 
        dino->di_next_unlinked = cpu_to_be32(NULLAGINO);
@@ -137,7 +143,7 @@ clear_dinode_unlinked(xfs_mount_t *mp, xfs_dinode_t *dino)
  * until after the agi unlinked lists are walked in phase 3.
  */
 static void
-clear_dinode(xfs_mount_t *mp, xfs_dinode_t *dino, xfs_ino_t ino_num)
+clear_dinode(xfs_mount_t *mp, struct xfs_dinode *dino, xfs_ino_t ino_num)
 {
        clear_dinode_core(mp, dino, ino_num);
        clear_dinode_unlinked(mp, dino);
@@ -744,7 +750,7 @@ process_btinode(
        xfs_mount_t             *mp,
        xfs_agnumber_t          agno,
        xfs_agino_t             ino,
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        int                     type,
        int                     *dirty,
        xfs_rfsblock_t          *tot,
@@ -919,7 +925,7 @@ process_exinode(
        xfs_mount_t             *mp,
        xfs_agnumber_t          agno,
        xfs_agino_t             ino,
-       xfs_dinode_t            *dip,
+       struct xfs_dinode       *dip,
        int                     type,
        int                     *dirty,
        xfs_rfsblock_t          *tot,
@@ -974,7 +980,7 @@ process_lclinode(
        xfs_mount_t                     *mp,
        xfs_agnumber_t                  agno,
        xfs_agino_t                     ino,
-       xfs_dinode_t                    *dip,
+       struct xfs_dinode               *dip,
        int                             whichfork)
 {
        struct xfs_attr_shortform       *asf;
@@ -1010,7 +1016,10 @@ process_lclinode(
 }
 
 static int
-process_symlink_extlist(xfs_mount_t *mp, xfs_ino_t lino, xfs_dinode_t *dino)
+process_symlink_extlist(
+       xfs_mount_t             *mp,
+       xfs_ino_t               lino,
+       struct xfs_dinode       *dino)
 {
        xfs_fileoff_t           expected_offset;
        xfs_bmbt_rec_t          *rp;
@@ -1322,10 +1331,10 @@ _("bad symlink header ino %" PRIu64 ", file block %d, disk block %" PRIu64 "\n")
  */
 static int
 process_symlink(
-       xfs_mount_t     *mp,
-       xfs_ino_t       lino,
-       xfs_dinode_t    *dino,
-       blkmap_t        *blkmap)
+       xfs_mount_t             *mp,
+       xfs_ino_t               lino,
+       struct xfs_dinode       *dino,
+       blkmap_t                *blkmap)
 {
        char                    *symlink;
        char                    data[XFS_SYMLINK_MAXLEN];
@@ -1387,10 +1396,11 @@ _("found illegal null character in symlink inode %" PRIu64 "\n"),
  * that have no associated data storage (fifos, pipes, devices, etc.).
  */
 static int
-process_misc_ino_types(xfs_mount_t     *mp,
-                       xfs_dinode_t    *dino,
-                       xfs_ino_t       lino,
-                       int             type)
+process_misc_ino_types(
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dino,
+       xfs_ino_t               lino,
+       int                     type)
 {
        /*
         * must also have a zero size
@@ -1480,17 +1490,17 @@ _("size of fifo inode %" PRIu64 " != 0 (%" PRIu64 " blocks)\n"),
 
 static inline int
 dinode_fmt(
-       xfs_dinode_t *dino)
+       struct xfs_dinode *dino)
 {
        return be16_to_cpu(dino->di_mode) & S_IFMT;
 }
 
 static inline void
 change_dinode_fmt(
-       xfs_dinode_t    *dino,
-       int             new_fmt)
+       struct xfs_dinode       *dino,
+       int                     new_fmt)
 {
-       int             mode = be16_to_cpu(dino->di_mode);
+       int                     mode = be16_to_cpu(dino->di_mode);
 
        ASSERT((new_fmt & ~S_IFMT) == 0);
 
@@ -1501,7 +1511,7 @@ change_dinode_fmt(
 
 static int
 check_dinode_mode_format(
-       xfs_dinode_t *dinoc)
+       struct xfs_dinode       *dinoc)
 {
        if (dinoc->di_format >= XFS_DINODE_FMT_UUID)
                return -1;      /* FMT_UUID is not used */
@@ -1537,11 +1547,11 @@ check_dinode_mode_format(
 
 static int
 process_check_sb_inodes(
-       xfs_mount_t     *mp,
-       xfs_dinode_t    *dinoc,
-       xfs_ino_t       lino,
-       int             *type,
-       int             *dirty)
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dinoc,
+       xfs_ino_t               lino,
+       int                     *type,
+       int                     *dirty)
 {
        if (lino == mp->m_sb.sb_rootino) {
                if (*type != XR_INO_DIR)  {
@@ -1642,12 +1652,12 @@ _("bad # of extents (%u) for realtime bitmap inode %" PRIu64 "\n"),
  */
 static int
 process_check_inode_sizes(
-       xfs_mount_t     *mp,
-       xfs_dinode_t    *dino,
-       xfs_ino_t       lino,
-       int             type)
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dino,
+       xfs_ino_t               lino,
+       int                     type)
 {
-       xfs_fsize_t     size = be64_to_cpu(dino->di_size);
+       xfs_fsize_t             size = be64_to_cpu(dino->di_size);
 
        switch (type)  {
 
@@ -1734,9 +1744,9 @@ _("realtime summary inode %" PRIu64 " has bad size %" PRId64 " (should be %d)\n"
  */
 static int
 process_check_inode_forkoff(
-       xfs_mount_t     *mp,
-       xfs_dinode_t    *dino,
-       xfs_ino_t       lino)
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dino,
+       xfs_ino_t               lino)
 {
        if (dino->di_forkoff == 0)
                return 0;
@@ -1773,12 +1783,12 @@ _("bad attr fork offset %d in inode %" PRIu64 ", max=%zu\n"),
  */
 static int
 process_inode_blocks_and_extents(
-       xfs_dinode_t    *dino,
-       xfs_rfsblock_t  nblocks,
-       uint64_t        nextents,
-       uint64_t        anextents,
-       xfs_ino_t       lino,
-       int             *dirty)
+       struct xfs_dinode       *dino,
+       xfs_rfsblock_t          nblocks,
+       uint64_t                nextents,
+       uint64_t                anextents,
+       xfs_ino_t               lino,
+       int                     *dirty)
 {
        if (nblocks != be64_to_cpu(dino->di_nblocks))  {
                if (!no_modify)  {
@@ -1859,20 +1869,20 @@ _("nblocks (%" PRIu64 ") smaller than nextents for inode %" PRIu64 "\n"), nblock
  */
 static int
 process_inode_data_fork(
-       xfs_mount_t     *mp,
-       xfs_agnumber_t  agno,
-       xfs_agino_t     ino,
-       xfs_dinode_t    *dino,
-       int             type,
-       int             *dirty,
-       xfs_rfsblock_t  *totblocks,
-       uint64_t        *nextents,
-       blkmap_t        **dblkmap,
-       int             check_dups)
+       xfs_mount_t             *mp,
+       xfs_agnumber_t          agno,
+       xfs_agino_t             ino,
+       struct xfs_dinode       *dino,
+       int                     type,
+       int                     *dirty,
+       xfs_rfsblock_t          *totblocks,
+       uint64_t                *nextents,
+       blkmap_t                **dblkmap,
+       int                     check_dups)
 {
-       xfs_ino_t       lino = XFS_AGINO_TO_INO(mp, agno, ino);
-       int             err = 0;
-       int             nex;
+       xfs_ino_t               lino = XFS_AGINO_TO_INO(mp, agno, ino);
+       int                     err = 0;
+       int                     nex;
 
        /*
         * extent count on disk is only valid for positive values. The kernel
@@ -1968,22 +1978,22 @@ process_inode_data_fork(
  */
 static int
 process_inode_attr_fork(
-       xfs_mount_t     *mp,
-       xfs_agnumber_t  agno,
-       xfs_agino_t     ino,
-       xfs_dinode_t    *dino,
-       int             type,
-       int             *dirty,
-       xfs_rfsblock_t  *atotblocks,
-       uint64_t        *anextents,
-       int             check_dups,
-       int             extra_attr_check,
-       int             *retval)
+       xfs_mount_t             *mp,
+       xfs_agnumber_t          agno,
+       xfs_agino_t             ino,
+       struct xfs_dinode       *dino,
+       int                     type,
+       int                     *dirty,
+       xfs_rfsblock_t          *atotblocks,
+       uint64_t                *anextents,
+       int                     check_dups,
+       int                     extra_attr_check,
+       int                     *retval)
 {
-       xfs_ino_t       lino = XFS_AGINO_TO_INO(mp, agno, ino);
-       blkmap_t        *ablkmap = NULL;
-       int             repair = 0;
-       int             err;
+       xfs_ino_t               lino = XFS_AGINO_TO_INO(mp, agno, ino);
+       blkmap_t                *ablkmap = NULL;
+       int                     repair = 0;
+       int                     err;
 
        if (!dino->di_forkoff) {
                *anextents = 0;
@@ -2125,10 +2135,10 @@ process_inode_attr_fork(
 
 static int
 process_check_inode_nlink_version(
-       xfs_dinode_t    *dino,
-       xfs_ino_t       lino)
+       struct xfs_dinode       *dino,
+       xfs_ino_t               lino)
 {
-       int             dirty = 0;
+       int                     dirty = 0;
 
        /*
         * if it's a version 2 inode, it should have a zero
@@ -2240,7 +2250,7 @@ _("Bad extent size hint %u on inode %" PRIu64 ", "),
  */
 static int
 process_dinode_int(xfs_mount_t *mp,
-               xfs_dinode_t *dino,
+               struct xfs_dinode *dino,
                xfs_agnumber_t agno,
                xfs_agino_t ino,
                int was_free,           /* 1 if inode is currently free */
@@ -2921,21 +2931,21 @@ bad_out:
 
 int
 process_dinode(
-       xfs_mount_t     *mp,
-       xfs_dinode_t    *dino,
-       xfs_agnumber_t  agno,
-       xfs_agino_t     ino,
-       int             was_free,
-       int             *dirty,
-       int             *used,
-       int             ino_discovery,
-       int             check_dups,
-       int             extra_attr_check,
-       int             *isa_dir,
-       xfs_ino_t       *parent)
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dino,
+       xfs_agnumber_t          agno,
+       xfs_agino_t             ino,
+       int                     was_free,
+       int                     *dirty,
+       int                     *used,
+       int                     ino_discovery,
+       int                     check_dups,
+       int                     extra_attr_check,
+       int                     *isa_dir,
+       xfs_ino_t               *parent)
 {
-       const int       verify_mode = 0;
-       const int       uncertain = 0;
+       const int               verify_mode = 0;
+       const int               uncertain = 0;
 
 #ifdef XR_INODE_TRACE
        fprintf(stderr, _("processing inode %d/%d\n"), agno, ino);
@@ -2953,19 +2963,19 @@ process_dinode(
  */
 int
 verify_dinode(
-       xfs_mount_t     *mp,
-       xfs_dinode_t    *dino,
-       xfs_agnumber_t  agno,
-       xfs_agino_t     ino)
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dino,
+       xfs_agnumber_t          agno,
+       xfs_agino_t             ino)
 {
-       xfs_ino_t       parent;
-       int             used = 0;
-       int             dirty = 0;
-       int             isa_dir = 0;
-       const int       verify_mode = 1;
-       const int       check_dups = 0;
-       const int       ino_discovery = 0;
-       const int       uncertain = 0;
+       xfs_ino_t               parent;
+       int                     used = 0;
+       int                     dirty = 0;
+       int                     isa_dir = 0;
+       const int               verify_mode = 1;
+       const int               check_dups = 0;
+       const int               ino_discovery = 0;
+       const int               uncertain = 0;
 
        return process_dinode_int(mp, dino, agno, ino, 0, &dirty, &used,
                                verify_mode, uncertain, ino_discovery,
@@ -2979,19 +2989,19 @@ verify_dinode(
  */
 int
 verify_uncertain_dinode(
-       xfs_mount_t     *mp,
-       xfs_dinode_t    *dino,
-       xfs_agnumber_t  agno,
-       xfs_agino_t     ino)
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dino,
+       xfs_agnumber_t          agno,
+       xfs_agino_t             ino)
 {
-       xfs_ino_t       parent;
-       int             used = 0;
-       int             dirty = 0;
-       int             isa_dir = 0;
-       const int       verify_mode = 1;
-       const int       check_dups = 0;
-       const int       ino_discovery = 0;
-       const int       uncertain = 1;
+       xfs_ino_t               parent;
+       int                     used = 0;
+       int                     dirty = 0;
+       int                     isa_dir = 0;
+       const int               verify_mode = 1;
+       const int               check_dups = 0;
+       const int               ino_discovery = 0;
+       const int               uncertain = 1;
 
        return process_dinode_int(mp, dino, agno, ino, 0, &dirty, &used,
                                verify_mode, uncertain, ino_discovery,
index 1bd0e0b7225a450dffe3461750b42658122b8666..4ed8b46f516636dad8bb9282f01310a2c2f3c0cf 100644 (file)
@@ -44,7 +44,7 @@ update_rootino(xfs_mount_t *mp);
 
 int
 process_dinode(xfs_mount_t *mp,
-               xfs_dinode_t *dino,
+               struct xfs_dinode *dino,
                xfs_agnumber_t agno,
                xfs_agino_t ino,
                int was_free,
@@ -58,13 +58,13 @@ process_dinode(xfs_mount_t *mp,
 
 int
 verify_dinode(xfs_mount_t *mp,
-               xfs_dinode_t *dino,
+               struct xfs_dinode *dino,
                xfs_agnumber_t agno,
                xfs_agino_t ino);
 
 int
 verify_uncertain_dinode(xfs_mount_t *mp,
-               xfs_dinode_t *dino,
+               struct xfs_dinode *dino,
                xfs_agnumber_t agno,
                xfs_agino_t ino);
 
index 946e729e7c2433b05f3c550d14d1d3c34e0590ed..022b61b885f6cbe57ec3f3298d3a0be74974a38e 100644 (file)
@@ -117,8 +117,8 @@ process_sf_dir2_fixi8(
  */
 static void
 process_sf_dir2_fixoff(
-       xfs_mount_t     *mp,
-       xfs_dinode_t    *dip)
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dip)
 {
        int                     i;
        int                     offset;
@@ -145,14 +145,14 @@ process_sf_dir2_fixoff(
 /* ARGSUSED */
 static int
 process_sf_dir2(
-       xfs_mount_t     *mp,
-       xfs_ino_t       ino,
-       xfs_dinode_t    *dip,
-       int             ino_discovery,
-       int             *dino_dirty,    /* out - 1 if dinode buffer dirty */
-       char            *dirname,       /* directory pathname */
-       xfs_ino_t       *parent,        /* out - NULLFSINO if entry not exist */
-       int             *repair)        /* out - 1 if dir was fixed up */
+       xfs_mount_t             *mp,
+       xfs_ino_t               ino,
+       struct xfs_dinode       *dip,
+       int                     ino_discovery,
+       int                     *dino_dirty, /* out: 1 if dinode buffer dirty */
+       char                    *dirname,    /* directory pathname */
+       xfs_ino_t               *parent,     /* out: NULLFSINO if no entry */
+       int                     *repair)     /* out: 1 if dir was fixed up */
 {
        int                     bad_offset;
        int                     bad_sfnamelen;
@@ -564,18 +564,18 @@ _("bad .. entry in directory inode %" PRIu64 ", points to self, "),
 /* ARGSUSED */
 static int
 process_dir2_data(
-       xfs_mount_t     *mp,
-       xfs_ino_t       ino,
-       xfs_dinode_t    *dip,
-       int             ino_discovery,
-       char            *dirname,       /* directory pathname */
-       xfs_ino_t       *parent,        /* out - NULLFSINO if entry not exist */
-       struct xfs_buf  *bp,
-       int             *dot,           /* out - 1 if there is a dot, else 0 */
-       int             *dotdot,        /* out - 1 if there's a dotdot, else 0 */
-       xfs_dablk_t     da_bno,
-       char            *endptr,
-       int             *dirty)
+       xfs_mount_t             *mp,
+       xfs_ino_t               ino,
+       struct xfs_dinode       *dip,
+       int                     ino_discovery,
+       char                    *dirname, /* directory pathname */
+       xfs_ino_t               *parent,  /* out: NULLFSINO if entry not exist*/
+       struct xfs_buf          *bp,
+       int                     *dot,     /* out: 1 if there's a dot else 0 */
+       int                     *dotdot,  /* out: 1 if there's a dotdot else 0*/
+       xfs_dablk_t             da_bno,
+       char                    *endptr,
+       int                     *dirty)
 {
        int                     badbest;
        xfs_dir2_data_free_t    *bf;
@@ -960,17 +960,17 @@ _("bad bestfree table in block %u in directory inode %" PRIu64 ": "),
 /* ARGSUSED */
 static int
 process_block_dir2(
-       xfs_mount_t     *mp,
-       xfs_ino_t       ino,
-       xfs_dinode_t    *dip,
-       int             ino_discovery,
-       int             *dino_dirty,    /* out - 1 if dinode buffer dirty */
-       char            *dirname,       /* directory pathname */
-       xfs_ino_t       *parent,        /* out - NULLFSINO if entry not exist */
-       blkmap_t        *blkmap,
-       int             *dot,           /* out - 1 if there is a dot, else 0 */
-       int             *dotdot,        /* out - 1 if there's a dotdot, else 0 */
-       int             *repair)        /* out - 1 if something was fixed */
+       xfs_mount_t             *mp,
+       xfs_ino_t               ino,
+       struct xfs_dinode       *dip,
+       int                     ino_discovery,
+       int                     *dino_dirty, /* out: 1 if dinode buffer dirty */
+       char                    *dirname,    /* directory pathname */
+       xfs_ino_t               *parent,     /* out: NULLFSINO if no entry */
+       blkmap_t                *blkmap,
+       int                     *dot,        /* out: 1 if there's a dot else 0 */
+       int                     *dotdot,     /* out: 1 if there's a dotdot else 0 */
+       int                     *repair)     /* out: 1 if something was fixed */
 {
        struct xfs_dir2_data_hdr *block;
        xfs_dir2_leaf_entry_t   *blp;
@@ -1247,11 +1247,11 @@ error_out:
  */
 static int
 process_node_dir2(
-       xfs_mount_t     *mp,
-       xfs_ino_t       ino,
-       xfs_dinode_t    *dip,
-       blkmap_t        *blkmap,
-       int             *repair)
+       xfs_mount_t             *mp,
+       xfs_ino_t               ino,
+       struct xfs_dinode       *dip,
+       blkmap_t                *blkmap,
+       int                     *repair)
 {
        xfs_dablk_t             bno;
        da_bt_cursor_t          da_cursor;
@@ -1307,17 +1307,17 @@ process_node_dir2(
  */
 static int
 process_leaf_node_dir2(
-       xfs_mount_t     *mp,
-       xfs_ino_t       ino,
-       xfs_dinode_t    *dip,
-       int             ino_discovery,
-       char            *dirname,       /* directory pathname */
-       xfs_ino_t       *parent,        /* out - NULLFSINO if entry not exist */
-       blkmap_t        *blkmap,
-       int             *dot,           /* out - 1 if there is a dot, else 0 */
-       int             *dotdot,        /* out - 1 if there's a dotdot, else 0 */
-       int             *repair,        /* out - 1 if something was fixed */
-       int             isnode)         /* node directory not leaf */
+       xfs_mount_t             *mp,
+       xfs_ino_t               ino,
+       struct xfs_dinode       *dip,
+       int                     ino_discovery,
+       char                    *dirname, /* directory pathname */
+       xfs_ino_t               *parent,  /* out: NULLFSINO if no entry */
+       blkmap_t                *blkmap,
+       int                     *dot,     /* out: 1 if there's a dot else 0 */
+       int                     *dotdot,  /* out: 1 if there's a dotdot else 0*/
+       int                     *repair,  /* out: 1 if something was fixed */
+       int                     isnode)   /* node directory not leaf */
 {
        bmap_ext_t              *bmp;
        struct xfs_buf          *bp;
@@ -1405,20 +1405,20 @@ _("bad directory block magic # %#x in block %" PRIu64 " for directory inode %" P
  */
 int
 process_dir2(
-       xfs_mount_t     *mp,
-       xfs_ino_t       ino,
-       xfs_dinode_t    *dip,
-       int             ino_discovery,
-       int             *dino_dirty,
-       char            *dirname,
-       xfs_ino_t       *parent,
-       blkmap_t        *blkmap)
+       xfs_mount_t             *mp,
+       xfs_ino_t               ino,
+       struct xfs_dinode       *dip,
+       int                     ino_discovery,
+       int                     *dino_dirty,
+       char                    *dirname,
+       xfs_ino_t               *parent,
+       blkmap_t                *blkmap)
 {
-       int             dot;
-       int             dotdot;
-       xfs_fileoff_t   last;
-       int             repair;
-       int             res;
+       int                     dot;
+       int                     dotdot;
+       xfs_fileoff_t           last;
+       int                     repair;
+       int                     res;
 
        *parent = NULLFSINO;
        dot = dotdot = 0;
index af4cfb1da3297419b5458770e20cb9771f2dc4f6..d237ffef9e1565d42f277a72f43a0776f2307c68 100644 (file)
@@ -12,14 +12,14 @@ struct bmap_ext;
 
 int
 process_dir2(
-       xfs_mount_t     *mp,
-       xfs_ino_t       ino,
-       xfs_dinode_t    *dip,
-       int             ino_discovery,
-       int             *dirty,
-       char            *dirname,
-       xfs_ino_t       *parent,
-       struct blkmap   *blkmap);
+       xfs_mount_t             *mp,
+       xfs_ino_t               ino,
+       struct xfs_dinode       *dip,
+       int                     ino_discovery,
+       int                     *dirty,
+       char                    *dirname,
+       xfs_ino_t               *parent,
+       struct blkmap           *blkmap);
 
 void
 process_sf_dir2_fixi8(
index 65c03ddec9a9a5356759738130825c791d6ba1e7..8a1a39ec60c202c810fa211dd09e0a080eaabc0b 100644 (file)
@@ -630,7 +630,7 @@ typedef struct bm_level_state  {
 typedef struct bm_cursor  {
        int                     num_levels;
        xfs_ino_t               ino;
-       xfs_dinode_t            *dip;
+       struct xfs_dinode       *dip;
        bm_level_state_t        level[XR_MAX_BMLEVELS];
 } bmap_cursor_t;
 
index 83af5bc7e481df719cb195384f2b9b9a28a1dddb..8c53f5ef8a79dc799cac6216c72cb1ea3c035c95 100644 (file)
@@ -350,7 +350,7 @@ pf_scanfunc_bmap(
 static void
 pf_read_btinode(
        prefetch_args_t         *args,
-       xfs_dinode_t            *dino,
+       struct xfs_dinode       *dino,
        int                     isadir)
 {
        xfs_bmdr_block_t        *dib;
@@ -390,7 +390,7 @@ pf_read_btinode(
 static void
 pf_read_exinode(
        prefetch_args_t         *args,
-       xfs_dinode_t            *dino)
+       struct xfs_dinode       *dino)
 {
        pf_read_bmbt_reclist(args, (xfs_bmbt_rec_t *)XFS_DFORK_DPTR(dino),
                        be32_to_cpu(dino->di_nextents));
@@ -401,7 +401,7 @@ pf_read_inode_dirs(
        prefetch_args_t         *args,
        struct xfs_buf          *bp)
 {
-       xfs_dinode_t            *dino;
+       struct xfs_dinode       *dino;
        int                     icnt = 0;
        int                     hasdir = 0;
        int                     isadir;
index 793efb8089f9c1474307a925fc5e4730b8b2f726..d663a01d57ff0efc371caf86b0c0f0b1c9f35a8b 100644 (file)
@@ -153,26 +153,27 @@ check_summary(xfs_mount_t *mp)
  * instead of the realtime bitmap file
  */
 void
-process_rtbitmap(xfs_mount_t   *mp,
-               xfs_dinode_t    *dino,
-               blkmap_t        *blkmap)
+process_rtbitmap(
+       struct xfs_mount        *mp,
+       struct xfs_dinode       *dino,
+       blkmap_t                *blkmap)
 {
-       int             error;
-       int             bit;
-       int             bitsperblock;
-       int             bmbno;
-       int             end_bmbno;
-       xfs_fsblock_t   bno;
-       struct xfs_buf  *bp;
-       xfs_rtblock_t   extno;
-       int             i;
-       int             len;
-       int             log;
-       int             offs;
-       int             prevbit;
-       int             start_bmbno;
-       int             start_bit;
-       xfs_rtword_t    *words;
+       int                     error;
+       int                     bit;
+       int                     bitsperblock;
+       int                     bmbno;
+       int                     end_bmbno;
+       xfs_fsblock_t           bno;
+       struct xfs_buf          *bp;
+       xfs_rtblock_t           extno;
+       int                     i;
+       int                     len;
+       int                     log;
+       int                     offs;
+       int                     prevbit;
+       int                     start_bmbno;
+       int                     start_bit;
+       xfs_rtword_t            *words;
 
        ASSERT(mp->m_rbmip == NULL);
 
@@ -238,14 +239,15 @@ process_rtbitmap(xfs_mount_t      *mp,
  * copy the real-time summary file data into memory
  */
 void
-process_rtsummary(xfs_mount_t  *mp,
-               xfs_dinode_t    *dino,
-               blkmap_t        *blkmap)
+process_rtsummary(
+       xfs_mount_t             *mp,
+       struct xfs_dinode       *dino,
+       blkmap_t                *blkmap)
 {
-       xfs_fsblock_t   bno;
-       struct xfs_buf  *bp;
-       char            *bytes;
-       int             sumbno;
+       xfs_fsblock_t           bno;
+       struct xfs_buf          *bp;
+       char                    *bytes;
+       int                     sumbno;
 
        for (sumbno = 0; sumbno < blkmap->count; sumbno++) {
                bno = blkmap_get(blkmap, sumbno);
index 4558d1a252ffd76ca6d3899ec9441ebfd3c71528..f5d8f80c81e2052816f5437f1d18057a09cf943e 100644 (file)
@@ -20,9 +20,9 @@ int
 check_summary(xfs_mount_t      *mp);
 
 void
-process_rtbitmap(xfs_mount_t   *mp,
-               xfs_dinode_t    *dino,
-               struct blkmap   *blkmap);
+process_rtbitmap(xfs_mount_t           *mp,
+               struct xfs_dinode       *dino,
+               struct blkmap           *blkmap);
 
 void
 process_rtsummary(xfs_mount_t  *mp,