hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8S2X7
--------------------------------
This reverts commit 851a8cd3f05bf21a0829f91dcab76d83313cd6ce.
For debug reason, we want to know the data on disk is corrupted by write or disk fault. So add extra node_check function declaration back to call node_check in node_prepare_for_write().
Signed-off-by: Li Lingfeng lilingfeng3@huawei.com --- drivers/md/persistent-data/dm-btree-spine.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/md/persistent-data/dm-btree-spine.c b/drivers/md/persistent-data/dm-btree-spine.c index 7540383b7cf3..ce6c5b3d3e28 100644 --- a/drivers/md/persistent-data/dm-btree-spine.c +++ b/drivers/md/persistent-data/dm-btree-spine.c @@ -16,6 +16,10 @@
#define BTREE_CSUM_XOR 121107
+static int node_check(struct dm_block_validator *v, + struct dm_block *b, + size_t block_size); + static void node_prepare_for_write(struct dm_block_validator *v, struct dm_block *b, size_t block_size)