]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: delay iput when deleting a block group
authorJosef Bacik <josef@redhat.com>
Mon, 19 Sep 2011 16:26:24 +0000 (12:26 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:22 +0000 (21:20 -0500)
commit50a2f2681f65f6201f5f35583be737829b34c76d
tree5a68015e8b5fee1f93ac076b35f278e194706225
parentda2a56afcd1ee383c20fb44a43e6dfd8671bbd56
Btrfs: delay iput when deleting a block group

I kept getting warnings from evict because we were calling
btrfs_start_transaction() with a transaction already started when doing a
balance.  This is because we remove a block group which requires a transaction,
and the put the last reference on the cache inode.  Instead of doing this we
need to delay the iput so it is done not within a transaction having started.
This gets rid of our warnings.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit 455757c322cc0a0f2a692c5625dd88aaf6a7b889)
fs/btrfs/extent-tree.c