diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-09-17 10:58:06 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:00:48 -0400 |
commit | d3c2fdcf7b79079f60ac64e61d886964d4647910 (patch) | |
tree | 146379e460b1209fef52635bf8e581c68864a452 /fs/btrfs/file.c | |
parent | 7d7d6068bee9d8004ea7cc8a2ebda2c99a57caec (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/file.c')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 26826a543355..698eaea612f1 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -655,7 +655,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf, | |||
655 | num_written += write_bytes; | 655 | num_written += write_bytes; |
656 | 656 | ||
657 | balance_dirty_pages_ratelimited_nr(inode->i_mapping, num_pages); | 657 | balance_dirty_pages_ratelimited_nr(inode->i_mapping, num_pages); |
658 | btrfs_btree_balance_dirty(root); | 658 | btrfs_btree_balance_dirty(root, 1); |
659 | cond_resched(); | 659 | cond_resched(); |
660 | } | 660 | } |
661 | mutex_unlock(&inode->i_mutex); | 661 | mutex_unlock(&inode->i_mutex); |