diff options
author | Milan Broz <mbroz@redhat.com> | 2006-10-03 04:15:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:04:14 -0400 |
commit | 92c060a692a0c3482cdfcaf346cb2f7572368895 (patch) | |
tree | 7d0c16f4fffff713fbf0fdd5612f1961556f8ac0 /drivers/md/dm-snap.c | |
parent | e3f6ac6123be6f4ba14d71af0da0e8d3d39c33ed (diff) |
[PATCH] dm snapshot: fix invalidation ENOMEM
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>
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r-- | drivers/md/dm-snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 1d0fafda0f76..7c14867b5903 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) | |||
1034 | 1034 | ||
1035 | pe = __find_pending_exception(snap, bio); | 1035 | pe = __find_pending_exception(snap, bio); |
1036 | if (!pe) { | 1036 | if (!pe) { |
1037 | __invalidate_snapshot(snap, pe, ENOMEM); | 1037 | __invalidate_snapshot(snap, pe, -ENOMEM); |
1038 | goto next_snapshot; | 1038 | goto next_snapshot; |
1039 | } | 1039 | } |
1040 | 1040 | ||