Skip to content

Commit

Permalink
xfs: fix the xfs_trans_committed
Browse files Browse the repository at this point in the history
Use the correct prototype for xfs_trans_committed instead of casting it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
  • Loading branch information
Christoph Hellwig authored and Alex Elder committed Oct 18, 2010
1 parent dfe188d commit 4957a44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/xfs/xfs_trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,9 +1411,10 @@ xfs_trans_item_committed(
*/
STATIC void
xfs_trans_committed(
struct xfs_trans *tp,
void *arg,
int abortflag)
{
struct xfs_trans *tp = arg;
struct xfs_log_item_desc *lidp, *next;

list_for_each_entry_safe(lidp, next, &tp->t_items, lid_trans) {
Expand Down Expand Up @@ -1543,7 +1544,7 @@ xfs_trans_commit_iclog(
* running in simulation mode (the log is explicitly turned
* off).
*/
tp->t_logcb.cb_func = (void(*)(void*, int))xfs_trans_committed;
tp->t_logcb.cb_func = xfs_trans_committed;
tp->t_logcb.cb_arg = tp;

/*
Expand Down

0 comments on commit 4957a44

Please sign in to comment.