]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
xfs: fix the xfs_trans_committed
authorChristoph Hellwig <hch@infradead.org>
Wed, 6 Oct 2010 18:41:13 +0000 (18:41 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 18 Oct 2010 20:08:02 +0000 (15:08 -0500)
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>
fs/xfs/xfs_trans.c

index 50bd4acefc0062f9b31e7428f610c2084531ebaf..f6d956b7711e878fac4d08ee31a095d22fd93327 100644 (file)
@@ -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;
 
        /*