[PATCH] Btrfs: make sure to use btrfs_header_owner when freeing tree block

2014-06-27 Thread Josef Bacik
Mark noticed that his qgroup accounting for snapshot deletion wasn't working properly on a particular file system. Turns out we pass the root-objectid of the root we are deleting to btrfs_free_extent, and use that root always when we call btrfs_free_tree_block. This isn't correct, the owner must

Re: [PATCH] Btrfs: make sure to use btrfs_header_owner when freeing tree block V2

2014-06-27 Thread Josef Bacik
On 06/27/2014 05:05 PM, Josef Bacik wrote: Mark noticed that his qgroup accounting for snapshot deletion wasn't working properly on a particular file system. Turns out we pass the root-objectid of the root we are deleting to btrfs_free_extent, and use that root always when we call