Message ID | 20180502080157.11386-10-david@fromorbit.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index 53c07a7a14fb..3656f7cb18ad 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c @@ -722,8 +722,11 @@ xfs_buf_item_init( * nothing to do here so return. */ ASSERT(bp->b_target->bt_mount == mp); - if (bip != NULL) { + if (bip) { ASSERT(bip->bli_item.li_type == XFS_LI_BUF); + ASSERT(!test_bit(XFS_LI_TRANS, &bip->bli_item.li_flags)); + ASSERT(!bp->b_transp); + ASSERT(bip->bli_buf == bp); return 0; }