dm zoned: add device pointer to struct dm_zone
[linux-2.6-microblaze.git] / drivers / md / dm-dust.c
index eb37584..ff03b90 100644 (file)
@@ -207,16 +207,16 @@ static int dust_map_write(struct dust_device *dd, sector_t thisblock,
                          bool fail_read_on_bb)
 {
        unsigned long flags;
-       int ret = DM_MAPIO_REMAPPED;
+       int r = DM_MAPIO_REMAPPED;
 
        if (fail_read_on_bb) {
                thisblock >>= dd->sect_per_block_shift;
                spin_lock_irqsave(&dd->dust_lock, flags);
-               ret = __dust_map_write(dd, thisblock);
+               r = __dust_map_write(dd, thisblock);
                spin_unlock_irqrestore(&dd->dust_lock, flags);
        }
 
-       return ret;
+       return r;
 }
 
 static int dust_map(struct dm_target *ti, struct bio *bio)