diff options
author | Joe Thornber <ejt@redhat.com> | 2021-03-29 18:34:03 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2021-04-19 19:47:57 +0300 |
commit | f73e2e70ec48c9a9d45494c4866230a5059062ad (patch) | |
tree | 19e104922a317140d02dfd3838b8afcb1f8f73e7 /drivers/md | |
parent | d6db294fd8194e05a82f368ad97f4efafbd04f2a (diff) | |
download | linux-f73e2e70ec48c9a9d45494c4866230a5059062ad.tar.xz |
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/md')
-rw-r--r-- | drivers/md/persistent-data/dm-btree-spine.c | 2 |
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, |