mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +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);
|
||||
if (!pe) {
|
||||
__invalidate_snapshot(snap, pe, ENOMEM);
|
||||
__invalidate_snapshot(snap, pe, -ENOMEM);
|
||||
goto next_snapshot;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user