]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
sync MIN/MAX type casting changes with corresponding kernel change.
authorNathan Scott <nathans@sgi.com>
Wed, 12 Sep 2001 22:29:43 +0000 (22:29 +0000)
committerNathan Scott <nathans@sgi.com>
Wed, 12 Sep 2001 22:29:43 +0000 (22:29 +0000)
include/xfs_ag.h
include/xfs_trans.h
libxfs/xfs_mount.c

index be0ddcef159a8fd2274b29fcaf8eaa97dd53495b..f8509111152c30e82584fd52d3961a9a54fd7f02 100644 (file)
@@ -257,8 +257,8 @@ int xfs_min_freelist_pag(xfs_perag_t *pag, struct xfs_mount *mp);
 #define        XFS_MIN_FREELIST_PAG(pag,mp)    xfs_min_freelist_pag(pag,mp)
 #else
 #define        XFS_MIN_FREELIST_PAG(pag,mp)    \
-       XFS_MIN_FREELIST_RAW((pag)->pagf_levels[XFS_BTNUM_BNOi], \
-                            (pag)->pagf_levels[XFS_BTNUM_CNTi], mp)
+       XFS_MIN_FREELIST_RAW((uint_t)(pag)->pagf_levels[XFS_BTNUM_BNOi], \
+                            (uint_t)(pag)->pagf_levels[XFS_BTNUM_CNTi], mp)
 #endif
 #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_MIN_FREELIST_RAW)
 int xfs_min_freelist_raw(int bl, int cl, struct xfs_mount *mp);
index 8153f8aeb10320d068be994873a1dbc9f9488fca..7db2821f5110878a464841512c6a7cff7c877b9a 100644 (file)
@@ -675,7 +675,7 @@ typedef struct xfs_trans {
         (mp)->m_sb.sb_sectsize + \
         (mp)->m_sb.sb_sectsize + \
         XFS_FSB_TO_B((mp), 1) + \
-        MAX(XFS_FSB_TO_B((mp), 1), XFS_INODE_CLUSTER_SIZE(mp)) + \
+        MAX((__uint16_t)XFS_FSB_TO_B((mp), 1), XFS_INODE_CLUSTER_SIZE(mp)) + \
         (128 * 5))
 
 #define        XFS_IFREE_LOG_RES(mp)   ((mp)->m_reservations.tr_ifree)
index 61ab1ee770fac40319aa5433d3aaa18309aa5ade..4d54373b08abce6c37e45e8820a88720b7f5b2ef 100644 (file)
@@ -93,7 +93,8 @@ xfs_mount_common(xfs_mount_t *mp, xfs_sb_t *sbp)
        }
 
        mp->m_bsize = XFS_FSB_TO_BB(mp, 1);
-       mp->m_ialloc_inos = (int)MAX(XFS_INODES_PER_CHUNK, sbp->sb_inopblock);
+       mp->m_ialloc_inos = (int)MAX((__uint16_t)XFS_INODES_PER_CHUNK,
+                                       sbp->sb_inopblock);
        mp->m_ialloc_blks = mp->m_ialloc_inos >> sbp->sb_inopblog;
 }