Re: [PATCH 1/1] btrfs: incorrect handling for fiemap_fill_next_extent return

From: David Sterba
Date: Tue Mar 24 2015 - 18:26:26 EST


On Tue, Mar 24, 2015 at 06:12:56PM -0400, Chengyu Song wrote:
> fiemap_fill_next_extent returns 0 on success, -errno on error, 1 if this was
> the last extent that will fit in user array. If 1 is returned, the return
> value may eventually returned to user space, which should not happen, according
> to manpage of ioctl.
>
> Signed-off-by: Chengyu Song <csong84@xxxxxxxxxx>

Good catch, thanks.

Reviewed-by: David Sterba <dsterba@xxxxxxx>

Should go to stable.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/