Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128772
b: refs/heads/master
c: 188de64
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 7ce668a commit 6c3c2c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 323da79c9f096ed4da04e5ea00f766f75b28aeaa
refs/heads/master: 188de649c51f03df3f8a601aea0110a3870815c2
8 changes: 8 additions & 0 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,11 @@ void btrfs_throttle(struct btrfs_root *root)

void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
{
/*
* looks as though older kernels can get into trouble with
* this code, they end up stuck in balance_dirty_pages forever
*/
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
struct extent_io_tree *tree;
u64 num_dirty;
u64 start = 0;
Expand All @@ -1670,6 +1675,9 @@ void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
balance_dirty_pages_ratelimited_nr(
root->fs_info->btree_inode->i_mapping, 1);
}
#else
return;
#endif
}

void btrfs_set_buffer_defrag(struct extent_buffer *buf)
Expand Down

0 comments on commit 6c3c2c0

Please sign in to comment.