Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309903
b: refs/heads/master
c: 3d136a1
h: refs/heads/master
i:
  309901: 09d5272
  309899: 07b5200
  309895: 58522f1
  309887: e85bfca
v: v3
  • Loading branch information
Stefan Behrens authored and Josef Bacik committed May 30, 2012
1 parent ba2afb7 commit cd32b97
Show file tree
Hide file tree
Showing 3 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: 5bdbeb2187a99d690b374a8c5ec9911fcbcfe739
refs/heads/master: 3d136a1131c66f7d26fb171e4c5b0b8baacd3129
3 changes: 3 additions & 0 deletions trunk/fs/btrfs/ctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ static int btrfs_csum_sizes[] = { 4, 0 };
#define BTRFS_FT_XATTR 8
#define BTRFS_FT_MAX 9

/* ioprio of readahead is set to idle */
#define BTRFS_IOPRIO_READA (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0))

/*
* The key defines the order in the tree, and so it also defines (optimal)
* block layout.
Expand Down
5 changes: 5 additions & 0 deletions trunk/fs/btrfs/reada.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,13 +718,18 @@ static void reada_start_machine_worker(struct btrfs_work *work)
{
struct reada_machine_work *rmw;
struct btrfs_fs_info *fs_info;
int old_ioprio;

rmw = container_of(work, struct reada_machine_work, work);
fs_info = rmw->fs_info;

kfree(rmw);

old_ioprio = IOPRIO_PRIO_VALUE(task_nice_ioclass(current),
task_nice_ioprio(current));
set_task_ioprio(current, BTRFS_IOPRIO_READA);
__reada_start_machine(fs_info);
set_task_ioprio(current, old_ioprio);
}

static void __reada_start_machine(struct btrfs_fs_info *fs_info)
Expand Down

0 comments on commit cd32b97

Please sign in to comment.