aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-16 13:06:51 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commit1c8cfcc1590d378c82ec75888f71e87fd26551e3 (patch)
tree9fb938e07f895900b5d4c15a1ed3211d233c0877 /fs/btrfs/disk-io.c
parentcb03c743c6486e4efb8be6bdf7bf23177826d156 (diff)
Btrfs: Enable btree balancing on old kernels again
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 373374340e9b..d8a256d3c83a 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1719,7 +1719,6 @@ void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
1719 * looks as though older kernels can get into trouble with 1719 * looks as though older kernels can get into trouble with
1720 * this code, they end up stuck in balance_dirty_pages forever 1720 * this code, they end up stuck in balance_dirty_pages forever
1721 */ 1721 */
1722#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
1723 struct extent_io_tree *tree; 1722 struct extent_io_tree *tree;
1724 u64 num_dirty; 1723 u64 num_dirty;
1725 u64 start = 0; 1724 u64 start = 0;
@@ -1735,9 +1734,7 @@ void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
1735 balance_dirty_pages_ratelimited_nr( 1734 balance_dirty_pages_ratelimited_nr(
1736 root->fs_info->btree_inode->i_mapping, 1); 1735 root->fs_info->btree_inode->i_mapping, 1);
1737 } 1736 }
1738#else
1739 return; 1737 return;
1740#endif
1741} 1738}
1742 1739
1743void btrfs_set_buffer_defrag(struct extent_buffer *buf) 1740void btrfs_set_buffer_defrag(struct extent_buffer *buf)