/* Return true if ptr is the last record in the btree and we need to track updateѕ to this record. The decision will be further refined in the update_lastrec method.  */
STATIC int xfs_btree_is_lastrec(struct xfs_btree_cur *cur, struct xfs_btree_block *block, int level)
/* Return true if ptr is the last record in the btree and we need to track updateѕ to this record. The decision will be further refined in the update_lastrec method.  */
STATIC int xfs_btree_is_lastrec(struct xfs_btree_cur *cur, struct xfs_btree_block *block, int level)
{
	union xfs_btree_ptr	ptr;
	if (level > 0)
		return 0;
	if (!(cur->bc_flags & XFS_BTREE_LASTREC_UPDATE))
		return 0;
	xfs_btree_get_sibling(cur, block, &ptr, XFS_BB_RIGHTSIB);
	if (!xfs_btree_ptr_is_null(cur, &ptr))
		return 0;
	return 1;
}