Re: [PATCH v2] Btrfs: kill BUG_ON in do_relocation

2016-10-11 Thread David Sterba
On Fri, Sep 23, 2016 at 02:05:04PM -0700, Liu Bo wrote: > While updating btree, we try to push items between sibling > nodes/leaves in order to keep height as low as possible. > But we don't memset the original places with zero when > pushing items so that we could end up leaving stale content > in

[PATCH v2] Btrfs: kill BUG_ON in do_relocation

2016-09-23 Thread Liu Bo
While updating btree, we try to push items between sibling nodes/leaves in order to keep height as low as possible. But we don't memset the original places with zero when pushing items so that we could end up leaving stale content in nodes/leaves. One may read the above stale content by increasing