]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use the flusher threads for delalloc throttling
authorChris Mason <chris.mason@oracle.com>
Tue, 26 Oct 2010 17:40:45 +0000 (13:40 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 15:25:36 +0000 (11:25 -0400)
commit5d3fddc6d79b96fc4cf066c84581e107c411812f
treee33d9a25fc5ec8e03c1f0d5a4775c865e0520811
parentb6499f12abf9309bec1be9466228745eda72a5ad
Btrfs: use the flusher threads for delalloc throttling

We have a fairly complex set of loops around walking our list of
delalloc inodes when we find metadata delalloc space running low.
It doesn't work very well, can use large amounts of CPU and doesn't
do very efficient writeback.

This switches us to kick the bdi flusher threads instead.  All dirty
data in btrfs is accounted as delalloc data, so this is very similar
in terms of what it writes, but we're able to just kick off the IO
and wait for progress.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c