mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 11:50:52 +07:00
dm dust: change ret to r in dust_map_write
In the dust_map_write() function, change the return code variable "ret" to "r", to match the convention of the other device-mapper targets. Signed-off-by: Bryan Gurney <bgurney@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
c79f46a282
commit
88e7cafdca
@ -207,16 +207,16 @@ static int dust_map_write(struct dust_device *dd, sector_t thisblock,
|
|||||||
bool fail_read_on_bb)
|
bool fail_read_on_bb)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int ret = DM_MAPIO_REMAPPED;
|
int r = DM_MAPIO_REMAPPED;
|
||||||
|
|
||||||
if (fail_read_on_bb) {
|
if (fail_read_on_bb) {
|
||||||
thisblock >>= dd->sect_per_block_shift;
|
thisblock >>= dd->sect_per_block_shift;
|
||||||
spin_lock_irqsave(&dd->dust_lock, flags);
|
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);
|
spin_unlock_irqrestore(&dd->dust_lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dust_map(struct dm_target *ti, struct bio *bio)
|
static int dust_map(struct dm_target *ti, struct bio *bio)
|
||||||
|
Loading…
Reference in New Issue
Block a user