]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Btrfs: Raise thresholds for metadata writeback
authorChris Mason <chris.mason@oracle.com>
Wed, 24 Sep 2008 18:51:30 +0000 (14:51 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 19:41:59 +0000 (15:41 -0400)
commit24ab9cd85c11bccacbd0cce7f8e1aebd4930404c
tree2ace993dd54bb6dd94fdd4c0cb03813c6bf4c6a3
parent4434c33c7f233a7ee5dcaf357fbf795818ea8861
Btrfs: Raise thresholds for metadata writeback

Btrfs metadata writeback is fairly expensive.  Once a tree block is written
it must be cowed before it can be changed again.  The btree writepages
code has a threshold based on a count of dirty btree bytes which is
updated as IO is sent out.

This changes btree_writepages to skip the writeout if there are less
than 32MB of dirty bytes from the btrees, improving performance
across many workloads.

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