提交 92c060a6 编写于 作者: M Milan Broz 提交者: Linus Torvalds

[PATCH] dm snapshot: fix invalidation ENOMEM

Fix ENOMEM error sign.
Signed-off-by: NMilan Broz <mbroz@redhat.com>
Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e3f6ac61
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册