xfs
[Top] [All Lists]

[PATCH 2/7] xfs: fix the xfs_trans_committed

To: xfs@xxxxxxxxxxx
Subject: [PATCH 2/7] xfs: fix the xfs_trans_committed
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Wed, 06 Oct 2010 14:41:13 -0400
References: <20101006184111.634126439@xxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.48-1
Use the correct prototype for xfs_trans_committed instead of casting it.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: xfs/fs/xfs/xfs_trans.c
===================================================================
--- xfs.orig/fs/xfs/xfs_trans.c 2010-10-06 11:10:13.774254205 +0200
+++ xfs/fs/xfs/xfs_trans.c      2010-10-06 11:13:16.145254205 +0200
@@ -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) {
@@ -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;
 
        /*

<Prev in Thread] Current Thread [Next in Thread>