]> 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)
commit4ea17086247f4fdd1d5f734669c75c39e69f9d62
tree9f4c709d8df44bcdccd73a8e7c189fe789ac751a
parent8b3b574d1efac3e141367ed2fa57979cca78f0b6
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