aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-09-17 10:58:06 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:00:48 -0400
commitd3c2fdcf7b79079f60ac64e61d886964d4647910 (patch)
tree146379e460b1209fef52635bf8e581c68864a452 /fs/btrfs/extent-tree.c
parent7d7d6068bee9d8004ea7cc8a2ebda2c99a57caec (diff)
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>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 9151850266b0..fe772f9b06cf 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -1275,6 +1275,7 @@ struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
1275 set_buffer_checked(buf); 1275 set_buffer_checked(buf);
1276 set_buffer_defrag(buf); 1276 set_buffer_defrag(buf);
1277 set_radix_bit(&trans->transaction->dirty_pages, buf->b_page->index); 1277 set_radix_bit(&trans->transaction->dirty_pages, buf->b_page->index);
1278 trans->blocks_used++;
1278 return buf; 1279 return buf;
1279} 1280}
1280 1281