aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r--fs/xfs/xfs_buf_item.c13
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 */
1083void 1082void
1084xfs_buf_iodone( 1083xfs_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}