/* helper to check if a given offset is inside a given entry  */
static int offset_in_entry(struct btrfs_ordered_extent *entry, u64 file_offset)
/* helper to check if a given offset is inside a given entry  */
static int offset_in_entry(struct btrfs_ordered_extent *entry, u64 file_offset)
{
	if (file_offset < entry->file_offset ||
	    entry->file_offset + entry->len <= file_offset)
		return 0;
	return 1;
}