Btrfs: Use balance_dirty_pages_nr on btree blocks
authorChris Mason <chris.mason@oracle.com>
Mon, 17 Sep 2007 14:58:06 +0000 (10:58 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:00:48 +0000 (11:00 -0400)
commitd3c2fdcf7b79079f60ac64e61d886964d4647910
tree146379e460b1209fef52635bf8e581c68864a452
parent7d7d6068bee9d8004ea7cc8a2ebda2c99a57caec
Btrfs: Use balance_dirty_pages_nr on btree blocks

btrfs_btree_balance_dirty is changed to pass the number of pages dirtied
for more accurate dirty throttling.  This lets the VM make better decisions
about when to force some writeback.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/transaction.c