]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix page leak when allocing extent buffers
authorJosef Bacik <josef@redhat.com>
Fri, 4 May 2012 19:16:06 +0000 (15:16 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 4 May 2012 19:16:06 +0000 (15:16 -0400)
commitb3605a90c4f6edc5724212dc1b1f7862031c921e
tree6afd6d7659ad9d4d46aecc24e359c026bae7c7f7
parent6917309652506c51160e79a9e0e4f5ae48e3bad2
Btrfs: fix page leak when allocing extent buffers

If we happen to alloc a extent buffer and then alloc a page and notice that
page is already attached to an extent buffer, we will only unlock it and
free our existing eb.  Any pages currently attached to that eb will be
properly freed, but we don't do the page_cache_release() on the page where
we noticed the other extent buffer which can cause us to leak pages and I
hope cause the weird issues we've been seeing in this area.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c