Commit e355781d authored by Nikos Tsironis's avatar Nikos Tsironis Committed by Greg Kroah-Hartman
Browse files

dm era: Use correct value size in equality function of writeset tree

commit 64f2d15a upstream.

Fix the writeset tree equality test function to use the right value size
when comparing two btree values.

Fixes: eec40579

 ("dm: add era target")
Cc: # v3.15+
Signed-off-by: default avatarNikos Tsironis <>
Reviewed-by: default avatarMing-Hung Tsai <>
Signed-off-by: Mike Snitzer's avatarMike Snitzer <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 89f7565b
......@@ -389,7 +389,7 @@ static void ws_dec(void *context, const void *value)
static int ws_eq(void *context, const void *value1, const void *value2)
return !memcmp(value1, value2, sizeof(struct writeset_metadata));
return !memcmp(value1, value2, sizeof(struct writeset_disk));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment