1
0
Fork 0

[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>
hifive-unleashed-5.1
Milan Broz 2006-10-03 01:15:24 -07:00 committed by Linus Torvalds
parent e3f6ac6123
commit 92c060a692
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}