summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-snap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r--drivers/md/dm-snap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c
index e152d9817c81..5a7f73f9a6fb 100644
--- a/drivers/md/dm-snap.c
+++ b/drivers/md/dm-snap.c
@@ -1690,7 +1690,7 @@ static int snapshot_map(struct dm_target *ti, struct bio *bio)
1690 /* Full snapshots are not usable */ 1690 /* Full snapshots are not usable */
1691 /* To get here the table must be live so s->active is always set. */ 1691 /* To get here the table must be live so s->active is always set. */
1692 if (!s->valid) 1692 if (!s->valid)
1693 return -EIO; 1693 return DM_MAPIO_KILL;
1694 1694
1695 /* FIXME: should only take write lock if we need 1695 /* FIXME: should only take write lock if we need
1696 * to copy an exception */ 1696 * to copy an exception */
@@ -1698,7 +1698,7 @@ static int snapshot_map(struct dm_target *ti, struct bio *bio)
1698 1698
1699 if (!s->valid || (unlikely(s->snapshot_overflowed) && 1699 if (!s->valid || (unlikely(s->snapshot_overflowed) &&
1700 bio_data_dir(bio) == WRITE)) { 1700 bio_data_dir(bio) == WRITE)) {
1701 r = -EIO; 1701 r = DM_MAPIO_KILL;
1702 goto out_unlock; 1702 goto out_unlock;
1703 } 1703 }
1704 1704
@@ -1723,7 +1723,7 @@ static int snapshot_map(struct dm_target *ti, struct bio *bio)
1723 1723
1724 if (!s->valid || s->snapshot_overflowed) { 1724 if (!s->valid || s->snapshot_overflowed) {
1725 free_pending_exception(pe); 1725 free_pending_exception(pe);
1726 r = -EIO; 1726 r = DM_MAPIO_KILL;
1727 goto out_unlock; 1727 goto out_unlock;
1728 } 1728 }
1729 1729
@@ -1741,7 +1741,7 @@ static int snapshot_map(struct dm_target *ti, struct bio *bio)
1741 DMERR("Snapshot overflowed: Unable to allocate exception."); 1741 DMERR("Snapshot overflowed: Unable to allocate exception.");
1742 } else 1742 } else
1743 __invalidate_snapshot(s, -ENOMEM); 1743 __invalidate_snapshot(s, -ENOMEM);
1744 r = -EIO; 1744 r = DM_MAPIO_KILL;
1745 goto out_unlock; 1745 goto out_unlock;
1746 } 1746 }
1747 } 1747 }