mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
dm era: Use correct value size in equality function of writeset tree
commit64f2d15afeupstream. Fix the writeset tree equality test function to use the right value size when comparing two btree values. Fixes:eec40579d8("dm: add era target") Cc: stable@vger.kernel.org # v3.15+ Signed-off-by: Nikos Tsironis <ntsironis@arrikto.com> Reviewed-by: Ming-Hung Tsai <mtsai@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fbb85ef8cd
commit
f6dbf022f4
@@ -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));
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user