[PATCH u-boot] fs: btrfs: do not fail when offset of a ROOT_ITEM is not -1

Qu Wenruo quwenruo.btrfs at gmx.com
Thu Feb 11 00:24:00 CET 2021



On 2021/2/11 上午12:21, Marek Behun wrote:
> On Wed, 10 Feb 2021 09:20:11 +0800
> Qu Wenruo <wqu at suse.com> wrote:
>
>> You're correct, the kernel is using new schema, btrfs_get_fs_root(),
>> which only requires root objectid and completely get rid of the
>> offset/type, which is far less possible to call with wrong parameters.
>>
>> It would be a good timing to sync the code between kernel and
>> progs/u-boot now.
>
> So do you agree with this patch? If so, can you add Reviewed-by? Thanks.
>
I mean, to change btrfs-progs interface to follow kernel
btrfs_get_fs_root() schema, just pass objectid, without the need for
btrfs_key.

Thanks,
Qu


More information about the U-Boot mailing list