diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-06-23 04:11:15 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-07-26 14:16:35 -0400 |
commit | ca30b2a7b7ac899ac4da6030ccbebf2f137b8e6d (patch) | |
tree | b934c18bb70196aa44c7eb586569692e1b889f82 /fs/xfs/xfs_buf_item.c | |
parent | 7bfa31d8e0f90b65ff23be94fca65ce261b43fc8 (diff) |
xfs: give li_cb callbacks the correct prototype
Stop the function pointer casting madness and give all the li_cb instances
correct prototype.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r-- | fs/xfs/xfs_buf_item.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index 992d6be101cb..60e063d96f8d 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c | |||
@@ -1079,15 +1079,14 @@ xfs_buf_error_relse( | |||
1079 | * It is called by xfs_buf_iodone_callbacks() above which will take | 1079 | * It is called by xfs_buf_iodone_callbacks() above which will take |
1080 | * care of cleaning up the buffer itself. | 1080 | * care of cleaning up the buffer itself. |
1081 | */ | 1081 | */ |
1082 | /* ARGSUSED */ | ||
1083 | void | 1082 | void |
1084 | xfs_buf_iodone( | 1083 | xfs_buf_iodone( |
1085 | xfs_buf_t *bp, | 1084 | struct xfs_buf *bp, |
1086 | xfs_buf_log_item_t *bip) | 1085 | struct xfs_log_item *lip) |
1087 | { | 1086 | { |
1088 | struct xfs_ail *ailp = bip->bli_item.li_ailp; | 1087 | struct xfs_ail *ailp = lip->li_ailp; |
1089 | 1088 | ||
1090 | ASSERT(bip->bli_buf == bp); | 1089 | ASSERT(BUF_ITEM(lip)->bli_buf == bp); |
1091 | 1090 | ||
1092 | xfs_buf_rele(bp); | 1091 | xfs_buf_rele(bp); |
1093 | 1092 | ||
@@ -1101,6 +1100,6 @@ xfs_buf_iodone( | |||
1101 | * Either way, AIL is useless if we're forcing a shutdown. | 1100 | * Either way, AIL is useless if we're forcing a shutdown. |
1102 | */ | 1101 | */ |
1103 | spin_lock(&ailp->xa_lock); | 1102 | spin_lock(&ailp->xa_lock); |
1104 | xfs_trans_ail_delete(ailp, (xfs_log_item_t *)bip); | 1103 | xfs_trans_ail_delete(ailp, lip); |
1105 | xfs_buf_item_free(bip); | 1104 | xfs_buf_item_free(BUF_ITEM(lip)); |
1106 | } | 1105 | } |