Commit 92c060a6 authored by Milan Broz's avatar Milan Broz Committed by Linus Torvalds

[PATCH] dm snapshot: fix invalidation ENOMEM

Fix ENOMEM error sign.
Signed-off-by: default avatarMilan Broz <mbroz@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e3f6ac61
...@@ -1034,7 +1034,7 @@ static int __origin_write(struct list_head *snapshots, struct bio *bio) ...@@ -1034,7 +1034,7 @@ static int __origin_write(struct list_head *snapshots, struct bio *bio)
pe = __find_pending_exception(snap, bio); pe = __find_pending_exception(snap, bio);
if (!pe) { if (!pe) {
__invalidate_snapshot(snap, pe, ENOMEM); __invalidate_snapshot(snap, pe, -ENOMEM);
goto next_snapshot; goto next_snapshot;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment