xfs: fix implicit bool to int conversion
authorNicholas Mc Guire <der.herr@hofr.at>
Thu, 8 Jan 2015 23:48:58 +0000 (10:48 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 8 Jan 2015 23:48:58 +0000 (10:48 +1100)
try_wait_for_completion returns bool so the wrapper function
xfs_dqflock_nowait should probably also return bool and not int.

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_dquot.h

index c24c67e22a2a53b18bf11b00b503381fd45998f7..2f536f33cd265666f6d82cb880b0037d39c3bb28 100644 (file)
@@ -86,7 +86,7 @@ static inline void xfs_dqflock(xfs_dquot_t *dqp)
        wait_for_completion(&dqp->q_flush);
 }
 
-static inline int xfs_dqflock_nowait(xfs_dquot_t *dqp)
+static inline bool xfs_dqflock_nowait(xfs_dquot_t *dqp)
 {
        return try_wait_for_completion(&dqp->q_flush);
 }