aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2006-10-03 01:15:24 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-03 08:04:14 -0700
commit92c060a692a0c3482cdfcaf346cb2f7572368895 (patch)
tree7d0c16f4fffff713fbf0fdd5612f1961556f8ac0
parent[PATCH] dm: fix alloc_dev error path (diff)
downloadlinux-dev-92c060a692a0c3482cdfcaf346cb2f7572368895.tar.xz
linux-dev-92c060a692a0c3482cdfcaf346cb2f7572368895.zip
[PATCH] dm snapshot: fix invalidation ENOMEM
Fix ENOMEM error sign. Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/md/dm-snap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c
index 1d0fafda0f76..7c14867b5903 100644
--- a/drivers/md/dm-snap.c
+++ b/drivers/md/dm-snap.c
@@ -1034,7 +1034,7 @@ static int __origin_write(struct list_head *snapshots, struct bio *bio)
pe = __find_pending_exception(snap, bio);
if (!pe) {
- __invalidate_snapshot(snap, pe, ENOMEM);
+ __invalidate_snapshot(snap, pe, -ENOMEM);
goto next_snapshot;
}