git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
block: use helper function to test queue register
[sfrench/cifs-2.6.git]
/
block
/
blk-iocost.c
diff --git
a/block/blk-iocost.c
b/block/blk-iocost.c
index 951ad4bb27f5d342c5989067fa39ad44f21e4ab2..bbe86d1199dc5b785be847b3a3ab8043f10fad0e 100644
(file)
--- a/
block/blk-iocost.c
+++ b/
block/blk-iocost.c
@@
-669,7
+669,7
@@
static struct ioc *q_to_ioc(struct request_queue *q)
static const char *q_name(struct request_queue *q)
{
- if (
test_bit(QUEUE_FLAG_REGISTERED, &q->queue_flags
))
+ if (
blk_queue_registered(q
))
return kobject_name(q->kobj.parent);
else
return "<unknown>";