From: Milan Broz Date: Tue, 3 Oct 2006 08:15:24 +0000 (-0700) Subject: [PATCH] dm snapshot: fix invalidation ENOMEM X-Git-Tag: 2.1b_release~31145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92c060a692a0c3482cdfcaf346cb2f7572368895;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git [PATCH] dm snapshot: fix invalidation ENOMEM Fix ENOMEM error sign. Signed-off-by: Milan Broz Signed-off-by: Alasdair G Kergon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 1d0fafd..7c14867 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; }