The recent bio work and subsequent fixups created unused variables.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
{
while (bio) {
struct bio *xbh = bio->bi_next;
{
while (bio) {
struct bio *xbh = bio->bi_next;
- int nr_sectors = bio_sectors(bio);
bio->bi_next = NULL;
bio_endio(bio, status ? 0 : -EIO);
bio->bi_next = NULL;
bio_endio(bio, status ? 0 : -EIO);
static inline void complete_buffers(struct bio *bio, int ok)
{
struct bio *xbh;
static inline void complete_buffers(struct bio *bio, int ok)
{
struct bio *xbh;
- while(bio) {
- int nr_sectors = bio_sectors(bio);
xbh = bio->bi_next;
bio->bi_next = NULL;
xbh = bio->bi_next;
bio->bi_next = NULL;