Commit 43fd1fce authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Dave Chinner

xfs: fix implicit bool to int conversion

try_wait_for_completion returns bool so the wrapper function
xfs_dqflock_nowait should probably also return bool and not int.
Signed-off-by: default avatarNicholas Mc Guire <der.herr@hofr.at>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent d32057fc
...@@ -86,7 +86,7 @@ static inline void xfs_dqflock(xfs_dquot_t *dqp) ...@@ -86,7 +86,7 @@ static inline void xfs_dqflock(xfs_dquot_t *dqp)
wait_for_completion(&dqp->q_flush); 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); return try_wait_for_completion(&dqp->q_flush);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment