Commit f73e2e70 authored by Joe Thornber's avatar Joe Thornber Committed by Mike Snitzer

dm btree spine: remove paranoid node_check call in node_prep_for_write()

Remove this extra BUG_ON() that calls node_check() -- which avoids extra crc checking.
Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent d6db294f
...@@ -30,8 +30,6 @@ static void node_prepare_for_write(struct dm_block_validator *v, ...@@ -30,8 +30,6 @@ static void node_prepare_for_write(struct dm_block_validator *v,
h->csum = cpu_to_le32(dm_bm_checksum(&h->flags, h->csum = cpu_to_le32(dm_bm_checksum(&h->flags,
block_size - sizeof(__le32), block_size - sizeof(__le32),
BTREE_CSUM_XOR)); BTREE_CSUM_XOR));
BUG_ON(node_check(v, b, 4096));
} }
static int node_check(struct dm_block_validator *v, static int node_check(struct dm_block_validator *v,
......
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