xfs_extnum_t is the type to use to declare variables whose values have been obtained from per-inode extent counters. This commit replaces using basic types (e.g. uint64_t) with xfs_extnum_t when declaring such variables. Signed-off-by: Chandan Babu R <chandan.babu@xxxxxxxxxx> --- repair/dinode.c | 18 +++++++++--------- repair/scan.c | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/repair/dinode.c b/repair/dinode.c index 5a02751a..71801522 100644 --- a/repair/dinode.c +++ b/repair/dinode.c @@ -759,7 +759,7 @@ process_btinode( int type, int *dirty, xfs_rfsblock_t *tot, - uint64_t *nex, + xfs_extnum_t *nex, blkmap_t **blkmapp, int whichfork, int check_dups) @@ -773,7 +773,7 @@ process_btinode( char *forkname = get_forkname(whichfork); int i; int level; - int numrecs; + xfs_extnum_t numrecs; bmap_cursor_t cursor; uint64_t magic; @@ -934,7 +934,7 @@ process_exinode( int type, int *dirty, xfs_rfsblock_t *tot, - uint64_t *nex, + xfs_extnum_t *nex, blkmap_t **blkmapp, int whichfork, int check_dups) @@ -1794,8 +1794,8 @@ static int process_inode_blocks_and_extents( struct xfs_dinode *dino, xfs_rfsblock_t nblocks, - uint64_t nextents, - uint64_t anextents, + xfs_extnum_t nextents, + xfs_extnum_t anextents, xfs_ino_t lino, int *dirty) { @@ -1894,7 +1894,7 @@ process_inode_data_fork( int type, int *dirty, xfs_rfsblock_t *totblocks, - uint64_t *nextents, + xfs_extnum_t *nextents, blkmap_t **dblkmap, int check_dups) { @@ -2003,7 +2003,7 @@ process_inode_attr_fork( int type, int *dirty, xfs_rfsblock_t *atotblocks, - uint64_t *anextents, + xfs_extnum_t *anextents, int check_dups, int extra_attr_check, int *retval) @@ -2288,8 +2288,8 @@ process_dinode_int(xfs_mount_t *mp, int di_mode; int type; int retval = 0; - uint64_t nextents; - uint64_t anextents; + xfs_extnum_t nextents; + xfs_extnum_t anextents; xfs_ino_t lino; const int is_free = 0; const int is_used = 1; diff --git a/repair/scan.c b/repair/scan.c index c8977a02..603d29a3 100644 --- a/repair/scan.c +++ b/repair/scan.c @@ -133,7 +133,7 @@ scan_lbtree( xfs_fsblock_t bno, xfs_ino_t ino, xfs_rfsblock_t *tot, - uint64_t *nex, + xfs_extnum_t *nex, blkmap_t **blkmapp, bmap_cursor_t *bm_cursor, int isroot, @@ -144,7 +144,7 @@ scan_lbtree( int whichfork, xfs_ino_t ino, xfs_rfsblock_t *tot, - uint64_t *nex, + xfs_extnum_t *nex, blkmap_t **blkmapp, bmap_cursor_t *bm_cursor, int isroot, @@ -204,7 +204,7 @@ scan_bmapbt( xfs_fsblock_t bno, xfs_ino_t ino, xfs_rfsblock_t *tot, - uint64_t *nex, + xfs_extnum_t *nex, blkmap_t **blkmapp, bmap_cursor_t *bm_cursor, int isroot, -- 2.35.1