[PATCH] dm snapshot: fix invalidation ENOMEM
authorMilan Broz <[email protected]>
Tue, 3 Oct 2006 08:15:24 +0000 (01:15 -0700)
committerLinus Torvalds <[email protected]>
Tue, 3 Oct 2006 15:04:14 +0000 (08:04 -0700)
Fix ENOMEM error sign.

Signed-off-by: Milan Broz <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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;
                }