xfs: remove u_int* type usage
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Nov 2017 17:34:28 +0000 (09:34 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Nov 2017 23:50:29 +0000 (15:50 -0800)
Use the uint* types instead of the u_int* types.  This will (hopefully)
pair with an xfsprogs cleanup.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_format.h
fs/xfs/xfs_attr_list.c
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_ioctl.h

index 2e047e7..1acb584 100644 (file)
@@ -1147,7 +1147,7 @@ static inline void xfs_dinode_put_rdev(struct xfs_dinode *dip, xfs_dev_t rdev)
  * Dquot and dquot block format definitions
  */
 #define XFS_DQUOT_MAGIC                0x4451          /* 'DQ' */
-#define XFS_DQUOT_VERSION      (u_int8_t)0x01  /* latest version number */
+#define XFS_DQUOT_VERSION      (uint8_t)0x01   /* latest version number */
 
 /*
  * This is the main portion of the on-disk representation of quota
index a360310..3e59a34 100644 (file)
@@ -546,8 +546,8 @@ xfs_attr_list_int(
 #define        ATTR_ENTBASESIZE                /* minimum bytes used by an attr */ \
        (((struct attrlist_ent *) 0)->a_name - (char *) 0)
 #define        ATTR_ENTSIZE(namelen)           /* actual bytes used by an attr */ \
-       ((ATTR_ENTBASESIZE + (namelen) + 1 + sizeof(u_int32_t)-1) \
-        & ~(sizeof(u_int32_t)-1))
+       ((ATTR_ENTBASESIZE + (namelen) + 1 + sizeof(uint32_t)-1) \
+        & ~(sizeof(uint32_t)-1))
 
 /*
  * Format an attribute and copy it out to the user's buffer.
index 65a7951..20dc65f 100644 (file)
@@ -311,8 +311,8 @@ xfs_readlink_by_handle(
 int
 xfs_set_dmattrs(
        xfs_inode_t     *ip,
-       u_int           evmask,
-       u_int16_t       state)
+       uint            evmask,
+       uint16_t        state)
 {
        xfs_mount_t     *mp = ip->i_mount;
        xfs_trans_t     *tp;
index e86c3ea..8de879f 100644 (file)
@@ -86,7 +86,7 @@ xfs_file_compat_ioctl(
 extern int
 xfs_set_dmattrs(
        struct xfs_inode        *ip,
-       u_int                   evmask,
-       u_int16_t               state);
+       uint                    evmask,
+       uint16_t                state);
 
 #endif