Commit a7e134ef authored by Dave Chinner's avatar Dave Chinner Committed by Darrick J. Wong

xfs: clean up whacky buffer log item list reinit

When we've emptied the buffer log item list, it does a list_del_init
on itself to reset it's pointers to itself. This is unnecessary as
the list is already empty at this point - it was a left-over
fragment from the list_head conversion of the buffer log item list.
Remove them.
Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent b01d1461
...@@ -459,7 +459,6 @@ xfs_buf_item_unpin( ...@@ -459,7 +459,6 @@ xfs_buf_item_unpin(
if (bip->bli_flags & XFS_BLI_STALE_INODE) { if (bip->bli_flags & XFS_BLI_STALE_INODE) {
xfs_buf_do_callbacks(bp); xfs_buf_do_callbacks(bp);
bp->b_log_item = NULL; bp->b_log_item = NULL;
list_del_init(&bp->b_li_list);
} else { } else {
xfs_trans_ail_delete(lip, SHUTDOWN_LOG_IO_ERROR); xfs_trans_ail_delete(lip, SHUTDOWN_LOG_IO_ERROR);
xfs_buf_item_relse(bp); xfs_buf_item_relse(bp);
...@@ -1165,7 +1164,6 @@ xfs_buf_run_callbacks( ...@@ -1165,7 +1164,6 @@ xfs_buf_run_callbacks(
xfs_buf_do_callbacks(bp); xfs_buf_do_callbacks(bp);
bp->b_log_item = NULL; bp->b_log_item = NULL;
list_del_init(&bp->b_li_list);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment