From: Dave Chinner Date: Fri, 17 Nov 2017 04:11:34 +0000 (-0600) Subject: xfs: convert remaining xfs_sb_version_... checks to bool X-Git-Tag: v4.15.0-rc1~143^2~31 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=893d9af8295b6b76ff380f3e56d1d27c6a216f95;p=thirdparty%2Fxfsprogs-dev.git xfs: convert remaining xfs_sb_version_... checks to bool Source kernel commit: 5d0eda0307ca20c5c58b1abd2a8ba822e0763b43 Some were missed in the pass that converted the function return values from int to bool. Update the remaining ones for consistency. Signed-Off-By: Dave Chinner Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_format.h b/libxfs/xfs_format.h index 129655a90..caf4a02cc 100644 --- a/libxfs/xfs_format.h +++ b/libxfs/xfs_format.h @@ -505,12 +505,12 @@ xfs_sb_has_incompat_log_feature( /* * V5 superblock specific feature checks */ -static inline int xfs_sb_version_hascrc(struct xfs_sb *sbp) +static inline bool xfs_sb_version_hascrc(struct xfs_sb *sbp) { return XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5; } -static inline int xfs_sb_version_has_pquotino(struct xfs_sb *sbp) +static inline bool xfs_sb_version_has_pquotino(struct xfs_sb *sbp) { return XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5; }