mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
xfs: add some more debug checks to buffer log item reuse
Just to make sure the item isn't associated with another transaction when we try to reuse it. Signed-Off-By: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
844e5e74c1
commit
1a2ebf835a
1 changed files with 3 additions and 1 deletions
|
@ -745,8 +745,10 @@ xfs_buf_item_init(
|
||||||
* nothing to do here so return.
|
* nothing to do here so return.
|
||||||
*/
|
*/
|
||||||
ASSERT(bp->b_target->bt_mount == mp);
|
ASSERT(bp->b_target->bt_mount == mp);
|
||||||
if (bip != NULL) {
|
if (bip) {
|
||||||
ASSERT(bip->bli_item.li_type == XFS_LI_BUF);
|
ASSERT(bip->bli_item.li_type == XFS_LI_BUF);
|
||||||
|
ASSERT(!bp->b_transp);
|
||||||
|
ASSERT(bip->bli_buf == bp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue