Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62022
b: refs/heads/master
c: 8350163
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Dobriyan authored and Jens Axboe committed Jul 20, 2007
1 parent 5df5dfa commit cd43ef2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 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: c2dea2d1fdbce86942dba0a968c523d8b7858bb5
refs/heads/master: 8350163a90f6003c9e60e8ebc0e00f654657645f
11 changes: 0 additions & 11 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ struct cfq_data {
unsigned int cfq_slice_idle;

struct list_head cic_list;

sector_t new_seek_mean;
u64 new_seek_total;
};

/*
Expand Down Expand Up @@ -157,8 +154,6 @@ struct cfq_queue {

/* various state flags, see below */
unsigned int flags;

sector_t last_request_pos;
};

enum cfqq_state_flags {
Expand Down Expand Up @@ -1621,11 +1616,6 @@ cfq_update_io_seektime(struct cfq_data *cfqd, struct cfq_io_context *cic,
else
sdist = cic->last_request_pos - rq->sector;

if (!cic->seek_samples) {
cfqd->new_seek_total = (7*cic->seek_total + (u64)256*sdist) / 8;
cfqd->new_seek_mean = cfqd->new_seek_total / 256;
}

/*
* Don't allow the seek distance to get too large from the
* odd fragment, pagein, etc
Expand Down Expand Up @@ -1761,7 +1751,6 @@ cfq_rq_enqueued(struct cfq_data *cfqd, struct cfq_queue *cfqq,
cfq_update_idle_window(cfqd, cfqq, cic);

cic->last_request_pos = rq->sector + rq->nr_sectors;
cfqq->last_request_pos = cic->last_request_pos;

if (cfqq == cfqd->active_queue) {
/*
Expand Down

0 comments on commit cd43ef2

Please sign in to comment.