/* helper function for defrag to decide if two blocks pointed to by a node are actually close by  */
static int close_blocks(u64 blocknr, u64 other, u32 blocksize)
/* helper function for defrag to decide if two blocks pointed to by a node are actually close by  */
static int close_blocks(u64 blocknr, u64 other, u32 blocksize)
{
	if (blocknr < other && other - (blocknr + blocksize) < 32768)
		return 1;
	if (blocknr > other && blocknr - (other + blocksize) < 32768)
		return 1;
	return 0;
}