On Wed, Sep 14, 2016 at 03:19:18PM +0200, Holger Hoffstätte wrote: > On 09/14/16 04:02, Liu Bo wrote: > > The extent buffer 'next' needs to be free'd conditionally. > > > > Signed-off-by: Liu Bo <[email protected]> > > --- > > fs/btrfs/extent-tree.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c > > index 5a940ab..779fd72 100644 > > --- a/fs/btrfs/extent-tree.c > > +++ b/fs/btrfs/extent-tree.c > > @@ -8882,6 +8882,7 @@ static noinline int do_walk_down(struct > > btrfs_trans_handle *trans, > > &wc->flags[level - 1]); > > if (ret < 0) { > > btrfs_tree_unlock(next); > > + free_extent_buffer(next); > > return ret; > > } > > > > > > This was fixed a long time ago by the following patch by Josef: > > "Btrfs: don't BUG() during drop snapshot" > https://patchwork.kernel.org/patch/7002791/ > > ..which never got merged.
The patch was buried in some thread, not even a subject gives a hint there's a patch, but anyway thanks for pointing it out. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
