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/disk-io.h | |
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/disk-io.h')
-rw-r--r-- | fs/btrfs/disk-io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 714fa877438b..fc6b520c6e0b 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h | |||
@@ -80,7 +80,7 @@ int btrfs_insert_dev_radix(struct btrfs_root *root, | |||
80 | u64 num_blocks); | 80 | u64 num_blocks); |
81 | int btrfs_map_bh_to_logical(struct btrfs_root *root, struct buffer_head *bh, | 81 | int btrfs_map_bh_to_logical(struct btrfs_root *root, struct buffer_head *bh, |
82 | u64 logical); | 82 | u64 logical); |
83 | void btrfs_btree_balance_dirty(struct btrfs_root *root); | 83 | void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr); |
84 | int btrfs_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root); | 84 | int btrfs_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root); |
85 | void btrfs_mark_buffer_dirty(struct buffer_head *bh); | 85 | void btrfs_mark_buffer_dirty(struct buffer_head *bh); |
86 | #endif | 86 | #endif |