Skip to content

Commit 64f2d15

Browse files
ntsironsnitm
authored andcommitted
dm era: Use correct value size in equality function of writeset tree
Fix the writeset tree equality test function to use the right value size when comparing two btree values. Fixes: eec4057 ("dm: add era target") Cc: [email protected] # v3.15+ Signed-off-by: Nikos Tsironis <[email protected]> Reviewed-by: Ming-Hung Tsai <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 904e6b2 commit 64f2d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-era-target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static void ws_dec(void *context, const void *value)
389389

390390
static int ws_eq(void *context, const void *value1, const void *value2)
391391
{
392-
return !memcmp(value1, value2, sizeof(struct writeset_metadata));
392+
return !memcmp(value1, value2, sizeof(struct writeset_disk));
393393
}
394394

395395
/*----------------------------------------------------------------*/

0 commit comments

Comments
 (0)