Skip to content

Commit

Permalink
[PATCH] dm snapshot: fix invalidation ENOMEM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Milan Broz authored and Linus Torvalds committed Oct 3, 2006
1 parent e3f6ac6 commit 92c060a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-snap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 92c060a

Please sign in to comment.