dm-thin-metadata.c (a4a82ce3d24d4409143a7b7b980072ada6e20b2a) dm-thin-metadata.c (0ef0b4717aa6849d251b23ae1efe93ca93af540b)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2011-2012 Red Hat, Inc.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-thin-metadata.h"

--- 389 unchanged lines hidden (view full) ---

398 for (i = 0; i < count; i++, root_le++)
399 if (dm_btree_del(info, le64_to_cpu(*root_le)))
400 DMERR("btree delete failed");
401}
402
403static int subtree_equal(void *context, const void *value1_le, const void *value2_le)
404{
405 __le64 v1_le, v2_le;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2011-2012 Red Hat, Inc.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-thin-metadata.h"

--- 389 unchanged lines hidden (view full) ---

398 for (i = 0; i < count; i++, root_le++)
399 if (dm_btree_del(info, le64_to_cpu(*root_le)))
400 DMERR("btree delete failed");
401}
402
403static int subtree_equal(void *context, const void *value1_le, const void *value2_le)
404{
405 __le64 v1_le, v2_le;
406
406 memcpy(&v1_le, value1_le, sizeof(v1_le));
407 memcpy(&v2_le, value2_le, sizeof(v2_le));
408
409 return v1_le == v2_le;
410}
411
412/*----------------------------------------------------------------*/
413

--- 1750 unchanged lines hidden ---
407 memcpy(&v1_le, value1_le, sizeof(v1_le));
408 memcpy(&v2_le, value2_le, sizeof(v2_le));
409
410 return v1_le == v2_le;
411}
412
413/*----------------------------------------------------------------*/
414

--- 1750 unchanged lines hidden ---