On Wed, Oct 31, 2018 at 11:43:20AM +0200, Nikolay Borisov wrote: > >> --- a/check/mode-lowmem.c > >> +++ b/check/mode-lowmem.c > >> @@ -1800,6 +1800,87 @@ static int repair_inline_ram_bytes(struct > >> btrfs_root *root, > >> return ret; > >> } > >> > >> + > >> +static int check_file_extent_inline(struct btrfs_root *root, > >> + struct btrfs_path *path, u64 *size, > >> + u64 *end) > >> +{ > >> + u32 max_inline_extent_size = min_t(u32, root->fs_info->sectorsize - 1, > >> + BTRFS_MAX_INLINE_DATA_SIZE(root->fs_info)); > >> + struct extent_buffer *node = path->nodes[0]; > >> + struct btrfs_item *e = btrfs_item_nr(0); > > btrfs_item_nr(path->slots[0]) > > > > I think this fixes the problem. > > Indeed, the original code uses path->slots[0] as the slot whereas I've > fixed that at slow 0, which of course is not always going to be the case. > > David will you fold this in the original patch ?
Yes I'll fold it. Thanks.