/* ext4_ext_find_extent wrapper. Return 0 on success, or a negative error value on failure.  */
static int get_ext_path(struct inode *inode, ext4_lblk_t lblock, struct ext4_ext_path **path)
/* ext4_ext_find_extent wrapper. Return 0 on success, or a negative error value on failure.  */
static int get_ext_path(struct inode *inode, ext4_lblk_t lblock, struct ext4_ext_path **path)
{
	int ret = 0;
	*path = ext4_ext_find_extent(inode, lblock, *path);
	if (IS_ERR(*path)) {
		ret = PTR_ERR(*path);
		*path = NULL;
	} else if ((*path)[ext_depth(inode)].p_ext == NULL)
		ret = -ENODATA;
	return ret;
}