Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147065
b: refs/heads/master
c: 3c4198e
h: refs/heads/master
i:
  147063: f6e65d1
v: v3
  • Loading branch information
Kiyoshi Ueda authored and Jens Axboe committed May 27, 2009
1 parent 55f608f commit ba7645b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: ba396a6c104682dfe5c8b4fbbf5974d5ac9f3687
refs/heads/master: 3c4198e874cde694f5ea1463706873e7907bdb18
6 changes: 3 additions & 3 deletions trunk/block/blk.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ static inline int blk_cpu_to_group(int cpu)
*
* a) it's attached to a gendisk, and
* b) the queue had IO stats enabled when this request was started, and
* c) it's a file system request
* c) it's a file system request or a discard request
*/
static inline int blk_do_io_stat(struct request *rq)
{
return rq->rq_disk && blk_rq_io_stat(rq) && blk_fs_request(rq) &&
blk_discard_rq(rq);
return rq->rq_disk && blk_rq_io_stat(rq) &&
(blk_fs_request(rq) || blk_discard_rq(rq));
}

#endif

0 comments on commit ba7645b

Please sign in to comment.