提交 b840e2ad 编写于 作者: C Christoph Hellwig 提交者: Darrick J. Wong

xfs: use xfs_buf_item_relse in xfs_buf_item_done

Reuse xfs_buf_item_relse instead of duplicating it.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
上级 70796c6b
...@@ -958,8 +958,6 @@ void ...@@ -958,8 +958,6 @@ void
xfs_buf_item_done( xfs_buf_item_done(
struct xfs_buf *bp) struct xfs_buf *bp)
{ {
struct xfs_buf_log_item *bip = bp->b_log_item;
/* /*
* If we are forcibly shutting down, this may well be off the AIL * If we are forcibly shutting down, this may well be off the AIL
* already. That's because we simulate the log-committed callbacks to * already. That's because we simulate the log-committed callbacks to
...@@ -969,8 +967,7 @@ xfs_buf_item_done( ...@@ -969,8 +967,7 @@ xfs_buf_item_done(
* *
* Either way, AIL is useless if we're forcing a shutdown. * Either way, AIL is useless if we're forcing a shutdown.
*/ */
xfs_trans_ail_delete(&bip->bli_item, SHUTDOWN_CORRUPT_INCORE); xfs_trans_ail_delete(&bp->b_log_item->bli_item,
bp->b_log_item = NULL; SHUTDOWN_CORRUPT_INCORE);
xfs_buf_item_free(bip); xfs_buf_item_relse(bp);
xfs_buf_rele(bp);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册