Commit 996d282c7ff470f150a467eb4815b90159d04c47

Authored by Josef Bacik
Committed by Chris Mason
1 parent 25cd999e1a

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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

... ... @@ -819,7 +819,6 @@
819 819 return 0;
820 820 }
821 821  
822   - btrfs_start_delalloc_inodes(root, 0);
823 822 btrfs_wait_ordered_extents(root, 0, 0);
824 823  
825 824 trans = btrfs_start_transaction(root, 0);