summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2021-03-29 17:34:03 +0200
committerMike Snitzer <snitzer@redhat.com>2021-04-19 18:47:57 +0200
commitf73e2e70ec48c9a9d45494c4866230a5059062ad (patch)
tree19e104922a317140d02dfd3838b8afcb1f8f73e7 /drivers
parentdm space map disk: remove redundant calls to sm_disk_get_nr_free() (diff)
downloadlinux-f73e2e70ec48c9a9d45494c4866230a5059062ad.tar.xz
linux-f73e2e70ec48c9a9d45494c4866230a5059062ad.zip
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: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/persistent-data/dm-btree-spine.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/persistent-data/dm-btree-spine.c b/drivers/md/persistent-data/dm-btree-spine.c
index dd2ff3ca9bc6..2061ab865567 100644
--- a/drivers/md/persistent-data/dm-btree-spine.c
+++ b/drivers/md/persistent-data/dm-btree-spine.c
@@ -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,
block_size - sizeof(__le32),
BTREE_CSUM_XOR));
-
- BUG_ON(node_check(v, b, 4096));
}
static int node_check(struct dm_block_validator *v,