diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 3cc480b8381..52569b57692 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1672,24 +1672,6 @@ void btrfs_mark_buffer_dirty(struct extent_buffer *buf) | |||
1672 | set_extent_buffer_dirty(&BTRFS_I(btree_inode)->io_tree, buf); | 1672 | set_extent_buffer_dirty(&BTRFS_I(btree_inode)->io_tree, buf); |
1673 | } | 1673 | } |
1674 | 1674 | ||
1675 | void btrfs_throttle(struct btrfs_root *root) | ||
1676 | { | ||
1677 | #if 0 | ||
1678 | struct backing_dev_info *bdi; | ||
1679 | |||
1680 | bdi = &root->fs_info->bdi; | ||
1681 | if (atomic_read(&root->fs_info->throttles) && | ||
1682 | bdi_write_congested(bdi)) { | ||
1683 | #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18) | ||
1684 | congestion_wait(WRITE, HZ/20); | ||
1685 | #else | ||
1686 | blk_congestion_wait(WRITE, HZ/20); | ||
1687 | #endif | ||
1688 | |||
1689 | } | ||
1690 | #endif | ||
1691 | } | ||
1692 | |||
1693 | void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr) | 1675 | void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr) |
1694 | { | 1676 | { |
1695 | /* | 1677 | /* |