mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 01:24:33 +00:00
[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>
This commit is contained in:
parent
e3f6ac6123
commit
92c060a692
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user