]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix btrfs_destroy_marked_extents
authorJosef Bacik <josef@redhat.com>
Thu, 31 May 2012 19:54:30 +0000 (15:54 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 15 Jun 2012 01:29:14 +0000 (21:29 -0400)
commitcf636b8580dfa4ab6be629b069dd211836f46d77
tree9f4c709d8df44bcdccd73a8e7c189fe789ac751a
parentaf3fa4d56b5f4280fab0734127488fbb0903d0cc
Btrfs: fix btrfs_destroy_marked_extents

So we're forcing the eb's to have their ref count set to 1 so invalidatepage
works but this breaks lots of things, for example root nodes, and is just
plain wrong, we don't need to just evict all of this stuff.  Also drop the
invalidatepage altogether and add a page_cache_release().  With this patch
we no longer hang when trying to access the root nodes after an aborted
transaction and we no longer leak memory.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/disk-io.c