Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128620
b: refs/heads/master
c: 04005cc
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 790aca3 commit 341c090
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb4bc1e0565a842d704846005ac0ec739e608ede
refs/heads/master: 04005cc7a1feef94237204566ccac38571af7991
7 changes: 6 additions & 1 deletion trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,13 @@ void btrfs_throttle(struct btrfs_root *root)
struct backing_dev_info *bdi;

bdi = root->fs_info->sb->s_bdev->bd_inode->i_mapping->backing_dev_info;
if (root->fs_info->throttles && bdi_write_congested(bdi))
if (root->fs_info->throttles && bdi_write_congested(bdi)) {
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18)
congestion_wait(WRITE, HZ/20);
#else
blk_congestion_wait(WRITE, HZ/20);
#endif
}
}

void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
Expand Down

0 comments on commit 341c090

Please sign in to comment.