summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2010-06-10 09:38:07 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-06-10 09:38:07 +0200
commit9df042e7d0b50268bc32b5bc153cd7af368e313a (patch)
treef653f157b8a7c4b36b9635fdebcd314da984ea3a /block
parentca0281910e95cc60ea6ff575573f9402bf37c83e (diff)
block: fix reversed set/clear of bits in helpers
Commit ca028191 added sysfs helpers for a few of the queue flag show/store functions, but it got the setting and clearing mixed up (too much copy-paste from a negated variant). Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index e75e223f63de..001ab18078f5 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -199,9 +199,9 @@ queue_store_##name(struct request_queue *q, const char *page, size_t count) \
\
spin_lock_irq(q->queue_lock); \
if (val) \
- queue_flag_clear(QUEUE_FLAG_##flag, q); \
- else \
queue_flag_set(QUEUE_FLAG_##flag, q); \
+ else \
+ queue_flag_clear(QUEUE_FLAG_##flag, q); \
spin_unlock_irq(q->queue_lock); \
return ret; \
}