[PATCH 02/25] dm snapshot: fix invalidation ENOMEM

From: Alasdair G Kergon
Date: Thu Sep 14 2006 - 17:38:05 EST


From: Milan Broz <mbroz@xxxxxxxxxx>

Fix ENOMEM error sign.

Signed-off-by: Milan Broz <mbroz@xxxxxxxxxx>
Signed-off-By: Alasdair G Kergon <agk@xxxxxxxxxx>

Index: linux-2.6.18-rc7/drivers/md/dm-snap.c
===================================================================
--- linux-2.6.18-rc7.orig/drivers/md/dm-snap.c 2006-09-14 20:25:35.000000000 +0100
+++ linux-2.6.18-rc7/drivers/md/dm-snap.c 2006-09-14 20:26:20.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;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/