Skip to content

Commit

Permalink
xfs: fix implicit bool to int conversion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicholas Mc Guire authored and Dave Chinner committed Jan 8, 2015
1 parent d32057f commit 43fd1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_dquot.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 43fd1fc

Please sign in to comment.