/* Mark the buffer as being one which contains newly allocated inodes. We need to make sure that even if this buffer is relogged as an 'inode buf' we still recover all of the inode images in the face of a crash. This works in coordination with xfs_buf_item_committed() to ensure that the buffer remains in the AIL at its original location even after it has been relogged.  */
void xfs_trans_inode_alloc_buf(xfs_trans_t *tp, xfs_buf_t *bp)
/* Mark the buffer as being one which contains newly allocated inodes. We need to make sure that even if this buffer is relogged as an 'inode buf' we still recover all of the inode images in the face of a crash. This works in coordination with xfs_buf_item_committed() to ensure that the buffer remains in the AIL at its original location even after it has been relogged.  */
void xfs_trans_inode_alloc_buf(xfs_trans_t *tp, xfs_buf_t *bp)
{
	xfs_buf_log_item_t	*bip;
	ASSERT(XFS_BUF_ISBUSY(bp));
	ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp);
	ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL);
	bip = XFS_BUF_FSPRIVATE(bp, xfs_buf_log_item_t *);
	ASSERT(atomic_read(&bip->bli_refcount) > 0);
	bip->bli_flags |= XFS_BLI_INODE_ALLOC_BUF;
}