[PATCH] dm snapshot: fix invalidation ENOMEM
authorMilan Broz <mbroz@redhat.com>
Tue, 3 Oct 2006 08:15:24 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:14 +0000 (08:04 -0700)
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>
drivers/md/dm-snap.c

index 1d0fafda0f761abb3630bd180f628dd7dfbbbc4d..7c14867b5903e6cac0f6360a0633aed2cdfb9aeb 100644 (file)
@@ -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;
                }