disk-io.c (a213501153fd66e2359e091b1612841305ba6551) disk-io.c (051e1b9f748ae673b7325d3fc049bb838606cffa)
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 1670 unchanged lines hidden (view full) ---

1679 bdi = &root->fs_info->bdi;
1680 if (atomic_read(&root->fs_info->throttles) &&
1681 bdi_write_congested(bdi)) {
1682#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18)
1683 congestion_wait(WRITE, HZ/20);
1684#else
1685 blk_congestion_wait(WRITE, HZ/20);
1686#endif
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 1670 unchanged lines hidden (view full) ---

1679 bdi = &root->fs_info->bdi;
1680 if (atomic_read(&root->fs_info->throttles) &&
1681 bdi_write_congested(bdi)) {
1682#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18)
1683 congestion_wait(WRITE, HZ/20);
1684#else
1685 blk_congestion_wait(WRITE, HZ/20);
1686#endif
1687
1687 }
1688}
1689
1690void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
1691{
1692 /*
1693 * looks as though older kernels can get into trouble with
1694 * this code, they end up stuck in balance_dirty_pages forever

--- 89 unchanged lines hidden ---
1688 }
1689}
1690
1691void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
1692{
1693 /*
1694 * looks as though older kernels can get into trouble with
1695 * this code, they end up stuck in balance_dirty_pages forever

--- 89 unchanged lines hidden ---