]> git.baikalelectronics.ru Git - kernel.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)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:45 +0000 (15:12 -0400)
commitf7adb2798390d6e1a1af01f69835b8ae29b8aa3f
tree1efe7eccd221b1afdaf406293102022775f68558
parente17c2869a1c9d07f95214423a31a75cf92427a8b
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>
fs/btrfs/extent-tree.c