xfs: fix u32 type usage in sb validation function
PATCH 1/1 xfs: fix u32 type usage in sb validation function
From: Darrick J. Wong <[email protected]>
Don't use u32, use uint32_t, because this won't work in xfsprogs.
Signed-off-by Darrick J. Wong <[email protected]>
--- fs/xfs/libxfs/xfs_sb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/xfs/libxfs/xfs_sb.c +2 -2
@@ -118,8 +118,8 @@ xfs_mount_validate_sb(bool check_inprogress, bool check_version) { -u32 agcount =0 ; -u32 rem; + uint32_t agcount = 0; +uint32_t rem;if (sbp->sb_magicnum !=XFS_SB_MAGIC ) {xfs_warn (mp,"bad magic number" );
Quoted 3 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
Don't use u32, use
uint32_t, because this won't work in xfsprogs.
mmkay :)
Reviewed-by Eric Sandeen <[email protected]>
Quoted 26 lines
Signed-off-by Darrick J. Wong <[email protected]>--- fs/xfs/libxfs/xfs_sb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fs/xfs/libxfs/xfs_sb.c +2
-3@@ -118,8 +118,8 @@ xfs_mount_validate_sb(bool check_inprogress, bool check_version) { -u32 agcount =0 ; -u32 rem; + uint32_t agcount = 0; +uint32_t rem;if (sbp->sb_magicnum !=XFS_SB_MAGIC ) {xfs_warn (mp,"bad magic number" ); --To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html