Btrfs: balance_dirty_pages_ratelimited is causing problems, use nr == 1 always
authorChris Mason <chris.mason@oracle.com>
Mon, 15 Oct 2007 20:21:17 +0000 (16:21 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:56 +0000 (11:03 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c

index 1176e5420c56d532bb05fb5f7dce22f80d0169de..3878772fcffd8b553015d0c48437b1adc2d94c2e 100644 (file)
@@ -768,7 +768,7 @@ void btrfs_mark_buffer_dirty(struct extent_buffer *buf)
 void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
 {
        balance_dirty_pages_ratelimited_nr(
-                       root->fs_info->btree_inode->i_mapping, nr);
+                       root->fs_info->btree_inode->i_mapping, 1);
 }
 
 void btrfs_set_buffer_defrag(struct extent_buffer *buf)