Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129015
b: refs/heads/master
c: 6f3577b
h: refs/heads/master
i:
  129013: 3432031
  129011: 4c71f98
  129007: 0e3d2fb
v: v3
  • Loading branch information
Chris Mason committed Nov 13, 2008
1 parent de36c8b commit 81d7f2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b050f04c8ce911c5b6831305a24d70eab95e732
refs/heads/master: 6f3577bdc768e6dae3c4d419e89b5a904f470728
8 changes: 4 additions & 4 deletions trunk/fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1285,16 +1285,16 @@ static noinline void reada_for_search(struct btrfs_root *root,
}
search = btrfs_node_blockptr(node, nr);
if ((search >= lowest_read && search <= highest_read) ||
(search < lowest_read && lowest_read - search <= 32768) ||
(search > highest_read && search - highest_read <= 32768)) {
(search < lowest_read && lowest_read - search <= 16384) ||
(search > highest_read && search - highest_read <= 16384)) {
readahead_tree_block(root, search, blocksize,
btrfs_node_ptr_generation(node, nr));
nread += blocksize;
}
nscan++;
if (path->reada < 2 && (nread > (256 * 1024) || nscan > 32))
if (path->reada < 2 && (nread > (64 * 1024) || nscan > 32))
break;
if(nread > (1024 * 1024) || nscan > 128)
if(nread > (256 * 1024) || nscan > 128)
break;

if (search < lowest_read)
Expand Down
6 changes: 3 additions & 3 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ static int btree_submit_bio_hook(struct inode *inode, int rw, struct bio *bio,
BUG_ON(ret);

return btrfs_map_bio(BTRFS_I(inode)->root, rw, bio,
mirror_num, 1);
mirror_num, 0);
}
return btrfs_wq_submit_bio(BTRFS_I(inode)->root->fs_info,
inode, rw, bio, mirror_num, 0,
Expand Down Expand Up @@ -1139,11 +1139,11 @@ static int btrfs_congested_fn(void *congested_data, int bdi_bits)
struct list_head *cur;
struct btrfs_device *device;
struct backing_dev_info *bdi;

#if 0
if ((bdi_bits & (1 << BDI_write_congested)) &&
btrfs_congested_async(info, 0))
return 1;

#endif
list_for_each(cur, &info->fs_devices->devices) {
device = list_entry(cur, struct btrfs_device, dev_list);
if (!device->bdev)
Expand Down

0 comments on commit 81d7f2a

Please sign in to comment.