/* Update the record referred to by cur to the value given by . This either works (return 0) or gets an EFSCORRUPTED error.  */
STATIC int xfs_alloc_update(struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len)
/* Update the record referred to by cur to the value given by . This either works (return 0) or gets an EFSCORRUPTED error.  */
STATIC int xfs_alloc_update(struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len)
{
	union xfs_btree_rec	rec;
	rec.alloc.ar_startblock = cpu_to_be32(bno);
	rec.alloc.ar_blockcount = cpu_to_be32(len);
	return xfs_btree_update(cur, &rec);
}