]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't bother autodefragging if our root is going away
authorJosef Bacik <jbacik@fusionio.com>
Fri, 26 Jul 2013 13:13:15 +0000 (09:13 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:25 +0000 (08:04 -0400)
commitbf19b37edb4216f6b2669eb0fd6be0c74c416b6d
tree83d07e75f6734847e9bec73d26135dd66707f37a
parent2176153e94ac8aced16c1ad9636a66a48f2d1ea6
Btrfs: don't bother autodefragging if our root is going away

We can end up with inodes on the auto defrag list that exist on roots that are
going to be deleted.  This is extra work we don't need to do, so just bail if
our root has 0 root refs.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/file.c