Subject: [PATCH 02/25] dm snapshot: fix invalidation ENOMEM
To: Andrew Morton <[email-masked]>
Cc: [email-masked], Milan Broz <[email-masked]>

From: Milan Broz <[email-masked]>

Fix ENOMEM error sign.

Signed-off-by: Milan Broz <[email-masked]>
Signed-off-By: Alasdair G Kergon <[email-masked]>

Index: linux-2.6.18-rc7/drivers/md/dm-snap.c
===================================================================
--- linux-2.6.18-rc7.orig/drivers/md/dm-snap.c	2006-10-13 16:56:33.000000000 +0100
+++ linux-2.6.18-rc7/drivers/md/dm-snap.c	2006-10-13 17:10:07.000000000 +0100
@@ -1034,7 +1034,7 @@ static int __origin_write(struct list_he
 
 		pe = __find_pending_exception(snap, bio);
 		if (!pe) {
-			__invalidate_snapshot(snap, pe, ENOMEM);
+			__invalidate_snapshot(snap, pe, -ENOMEM);
 			goto next_snapshot;
 		}