Re: [PATCH] Btrfs: fix panic in balance due to EIO

2016-07-12 Thread Liu Bo
On Tue, Jul 12, 2016 at 11:05:48AM -0400, Chris Mason wrote: > > > On 07/11/2016 08:37 PM, Liu Bo wrote: > > During build_backref_tree(), if we fail to read a btree node, > > we can eventually run into BUG_ON(cache->nr_nodes) that we put > > in backref_cache_cleanup(), meaning we have at least

Re: [PATCH] Btrfs: fix panic in balance due to EIO

2016-07-12 Thread Chris Mason
On 07/11/2016 08:37 PM, Liu Bo wrote: During build_backref_tree(), if we fail to read a btree node, we can eventually run into BUG_ON(cache->nr_nodes) that we put in backref_cache_cleanup(), meaning we have at least one memory leak. This frees the backref_node that we allocate at the very

[PATCH] Btrfs: fix panic in balance due to EIO

2016-07-11 Thread Liu Bo
During build_backref_tree(), if we fail to read a btree node, we can eventually run into BUG_ON(cache->nr_nodes) that we put in backref_cache_cleanup(), meaning we have at least one memory leak. This frees the backref_node that we allocate at the very beginning of build_backref_tree().