diff options
author | NeilBrown <neilb@suse.de> | 2006-12-13 03:34:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-13 12:05:48 -0500 |
commit | 802ba064c49f655d20fed563f2a4924c8256ea10 (patch) | |
tree | f705b597b2da6583239e9f028fa0d6f6ec319682 /drivers/md/faulty.c | |
parent | 011e3a9ad4891ba1b27e281e085228189c56b137 (diff) |
[PATCH] md: Don't assume that READ==0 and WRITE==1 - use the names explicitly
Thanks Jens for alerting me to this.
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: <raziebe@gmail.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/faulty.c')
-rw-r--r-- | drivers/md/faulty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c index a7a5ab554338..4ebd0f2a75ec 100644 --- a/drivers/md/faulty.c +++ b/drivers/md/faulty.c | |||
@@ -173,7 +173,7 @@ static int make_request(request_queue_t *q, struct bio *bio) | |||
173 | conf_t *conf = (conf_t*)mddev->private; | 173 | conf_t *conf = (conf_t*)mddev->private; |
174 | int failit = 0; | 174 | int failit = 0; |
175 | 175 | ||
176 | if (bio->bi_rw & 1) { | 176 | if (bio_data_dir(bio) == WRITE) { |
177 | /* write request */ | 177 | /* write request */ |
178 | if (atomic_read(&conf->counters[WriteAll])) { | 178 | if (atomic_read(&conf->counters[WriteAll])) { |
179 | /* special case - don't decrement, don't generic_make_request, | 179 | /* special case - don't decrement, don't generic_make_request, |