]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not start delalloc inodes during sync
authorJosef Bacik <josef@redhat.com>
Tue, 24 Apr 2012 00:35:03 +0000 (20:35 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 27 Apr 2012 17:55:12 +0000 (13:55 -0400)
commit5ed069806db00ec9c0cf3ba351e35f9b842a8db6
treee6dcab1fc9db79eff901aa3ea07d01ddc734999a
parent8e9ec41f416fbc9a3b601b5f7be0f413e24801f1
Btrfs: do not start delalloc inodes during sync

btrfs_start_delalloc_inodes will just walk the list of delalloc inodes and
start writing them out, but it doesn't splice the list or anything so as
long as somebody is doing work on the box you could end up in this section
_forever_.  So just remove it, it's not needed anyway since sync will start
writeback on all inodes anyway, all we need to do is wait for ordered
extents and then we can commit the transaction.  In my horrible torture test
sync goes from taking 4 minutes to about 1.5 minutes.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/super.c