Commit 2015a63d authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: fix type usage

Be consistent about using uint32_t/uint8_t instead of u32/u8.  This is
more so that we don't have to maintain /those/ types in xfsprogs.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarEric Sandeen <sandeen@redhat.com>
parent 962cc1ad
...@@ -302,7 +302,7 @@ xfs_iext_rec_cmp( ...@@ -302,7 +302,7 @@ xfs_iext_rec_cmp(
xfs_fileoff_t offset) xfs_fileoff_t offset)
{ {
uint64_t rec_offset = rec->lo & XFS_IEXT_STARTOFF_MASK; uint64_t rec_offset = rec->lo & XFS_IEXT_STARTOFF_MASK;
u32 rec_len = rec->hi & XFS_IEXT_LENGTH_MASK; uint32_t rec_len = rec->hi & XFS_IEXT_LENGTH_MASK;
if (rec_offset > offset) if (rec_offset > offset)
return 1; return 1;
......
...@@ -274,7 +274,7 @@ struct xfs_inode_log_format { ...@@ -274,7 +274,7 @@ struct xfs_inode_log_format {
uint64_t ilf_ino; /* inode number */ uint64_t ilf_ino; /* inode number */
union { union {
uint32_t ilfu_rdev; /* rdev value for dev inode*/ uint32_t ilfu_rdev; /* rdev value for dev inode*/
u8 __pad[16]; /* unused */ uint8_t __pad[16]; /* unused */
} ilf_u; } ilf_u;
int64_t ilf_blkno; /* blkno of inode buffer */ int64_t ilf_blkno; /* blkno of inode buffer */
int32_t ilf_len; /* len of inode buffer */ int32_t ilf_len; /* len of inode buffer */
...@@ -295,7 +295,7 @@ struct xfs_inode_log_format_32 { ...@@ -295,7 +295,7 @@ struct xfs_inode_log_format_32 {
uint64_t ilf_ino; /* inode number */ uint64_t ilf_ino; /* inode number */
union { union {
uint32_t ilfu_rdev; /* rdev value for dev inode*/ uint32_t ilfu_rdev; /* rdev value for dev inode*/
u8 __pad[16]; /* unused */ uint8_t __pad[16]; /* unused */
} ilf_u; } ilf_u;
int64_t ilf_blkno; /* blkno of inode buffer */ int64_t ilf_blkno; /* blkno of inode buffer */
int32_t ilf_len; /* len of inode buffer */ int32_t ilf_len; /* len of inode buffer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment