提交 4957a449 编写于 作者: C Christoph Hellwig 提交者: Alex Elder

xfs: fix the xfs_trans_committed

Use the correct prototype for xfs_trans_committed instead of casting it.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NAlex Elder <aelder@sgi.com>
上级 dfe188d4
...@@ -1411,9 +1411,10 @@ xfs_trans_item_committed( ...@@ -1411,9 +1411,10 @@ xfs_trans_item_committed(
*/ */
STATIC void STATIC void
xfs_trans_committed( xfs_trans_committed(
struct xfs_trans *tp, void *arg,
int abortflag) int abortflag)
{ {
struct xfs_trans *tp = arg;
struct xfs_log_item_desc *lidp, *next; struct xfs_log_item_desc *lidp, *next;
list_for_each_entry_safe(lidp, next, &tp->t_items, lid_trans) { list_for_each_entry_safe(lidp, next, &tp->t_items, lid_trans) {
...@@ -1543,7 +1544,7 @@ xfs_trans_commit_iclog( ...@@ -1543,7 +1544,7 @@ xfs_trans_commit_iclog(
* running in simulation mode (the log is explicitly turned * running in simulation mode (the log is explicitly turned
* off). * 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; tp->t_logcb.cb_arg = tp;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册