Btrfs: More throttle tuning
authorChris Mason <chris.mason@oracle.com>
Mon, 4 Aug 2008 12:20:15 +0000 (08:20 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:06 +0000 (11:04 -0400)
commit2dd3e67b1eaec8504da7e12b8afee77323a49f38
tree794035de0243b20cda0fdf571e2ed02f29aa962e
parent65b51a009e29e64c0951f21ea17fdc66bbb0fbd7
Btrfs: More throttle tuning

* Make walk_down_tree wake up throttled tasks more often
* Make walk_down_tree call cond_resched during long loops
* As the size of the ref cache grows, wait longer in throttle
* Get rid of the reada code in walk_down_tree, the leaves don't get
  read anymore, thanks to the ref cache.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c