]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't wait for all the async delalloc when shrinking delalloc
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 4 Nov 2013 15:13:24 +0000 (23:13 +0800)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:13:37 +0000 (22:13 -0500)
commite41410231e459062426a727fe8f9b20825ce608a
tree3cf949baa98476e1eb189bce349b34b14af13ce3
parentb5d76f3c7ae7fe5f0bc4e52284a71f11bbcf54f1
Btrfs: don't wait for all the async delalloc when shrinking delalloc

It was very likely that there were lots of async delalloc pages in the
filesystem, if we waited until all the pages were flushed, we would be
blocked for a long time, and the performance would also drop down.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent-tree.c