diff options
author | Jiri Slaby <jslaby@suse.cz> | 2010-08-12 14:31:06 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-08-23 12:33:10 +0200 |
commit | 5e00d1b5b4c10fb839afd5ce61db8e24339454b0 (patch) | |
tree | 150de7f5b3e887a75013796542897ef2e1e4775a /drivers/block | |
parent | c87ffbb812cf6150097a5095b031f4013a8f78a5 (diff) | |
download | linux-5e00d1b5b4c10fb839afd5ce61db8e24339454b0.tar.gz linux-5e00d1b5b4c10fb839afd5ce61db8e24339454b0.tar.bz2 linux-5e00d1b5b4c10fb839afd5ce61db8e24339454b0.zip |
BLOCK: fix bio.bi_rw handling
Return of the bi_rw tests is no longer bool after commit 74450be1. But
results of such tests are stored in bools. This doesn't fit in there
for some compilers (gcc 4.5 here), so either use !! magic to get real
bools or use ulong where the result is assigned somewhere.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index f3c636d23718..91797bbbe702 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -477,7 +477,7 @@ static int do_bio_filebacked(struct loop_device *lo, struct bio *bio) pos = ((loff_t) bio->bi_sector << 9) + lo->lo_offset; if (bio_rw(bio) == WRITE) { - bool barrier = (bio->bi_rw & REQ_HARDBARRIER); + bool barrier = !!(bio->bi_rw & REQ_HARDBARRIER); struct file *file = lo->lo_backing_file; if (barrier) { |