block: fixup rq/bio dcache page flushing for ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
authorJens Axboe <axboe@kernel.dk>
Thu, 31 Oct 2013 16:33:06 +0000 (10:33 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Oct 2013 16:33:06 +0000 (10:33 -0600)
commitb62ad46ef438c94164b33cd58ad945ebc210c67b
treec627586d4f9a7b2e12d68c35340b2aa91e347625
parent9fc6286f347d00528adcdcf12396d220f47492ed
block: fixup rq/bio dcache page flushing for ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE

On archs with ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE set, the conversion
on the flush functions was not complete:

   fs/bio.c: In function 'bio_flush_dcache_pages':
>> fs/bio.c:1693:2: error: incompatible types when assigning to type 'struct bio_vec *' from type 'struct bio_vec'
   fs/bio.c:1693:2: warning: left-hand operand of comma expression has no effect [-Wunused-value]
--
   block/blk-core.c: In function 'rq_flush_dcache_pages':
>> block/blk-core.c:2745:2: error: incompatible types when assigning to type 'struct bio_vec *' from type 'struct bio_vec'
   block/blk-core.c:2745:2: warning: left-hand operand of comma expression has no effect [-Wunused-value]

Fix them up.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
fs/bio.c