aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-10-06 14:41:13 -0400
committerAlex Elder <aelder@sgi.com>2010-10-18 16:08:02 -0400
commit4957a449a1bce2f5095f57f84114dc038a8f08d5 (patch)
treef0998e5e512126cd231bb0ff1967e15511a899a8 /fs/xfs/xfs_trans.c
parentdfe188d4283752086d48380cde40d9801c318667 (diff)
xfs: fix the xfs_trans_committed
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>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r--fs/xfs/xfs_trans.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c
index 50bd4acefc00..f6d956b7711e 100644
--- a/fs/xfs/xfs_trans.c
+++ b/fs/xfs/xfs_trans.c
@@ -1411,9 +1411,10 @@ xfs_trans_item_committed(
1411 */ 1411 */
1412STATIC void 1412STATIC void
1413xfs_trans_committed( 1413xfs_trans_committed(
1414 struct xfs_trans *tp, 1414 void *arg,
1415 int abortflag) 1415 int abortflag)
1416{ 1416{
1417 struct xfs_trans *tp = arg;
1417 struct xfs_log_item_desc *lidp, *next; 1418 struct xfs_log_item_desc *lidp, *next;
1418 1419
1419 list_for_each_entry_safe(lidp, next, &tp->t_items, lid_trans) { 1420 list_for_each_entry_safe(lidp, next, &tp->t_items, lid_trans) {
@@ -1543,7 +1544,7 @@ xfs_trans_commit_iclog(
1543 * running in simulation mode (the log is explicitly turned 1544 * running in simulation mode (the log is explicitly turned
1544 * off). 1545 * off).
1545 */ 1546 */
1546 tp->t_logcb.cb_func = (void(*)(void*, int))xfs_trans_committed; 1547 tp->t_logcb.cb_func = xfs_trans_committed;
1547 tp->t_logcb.cb_arg = tp; 1548 tp->t_logcb.cb_arg = tp;
1548 1549
1549 /* 1550 /*