summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/btree.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-10-20 22:38:12 +0800
committerJens Axboe <axboe@kernel.dk>2021-10-20 08:40:54 -0600
commit39fa7a95552cc851029267b97c1317f1dea61cad (patch)
tree46138a62895d4806fa507f7724e85e69158f45b1 /drivers/md/bcache/btree.c
parent00387bd21dac98f9e793294c895768d9e5441f82 (diff)
downloadlwn-39fa7a95552cc851029267b97c1317f1dea61cad.tar.gz
lwn-39fa7a95552cc851029267b97c1317f1dea61cad.zip
bcache: remove bch_crc64_update
bch_crc64_update is an entirely pointless wrapper around crc64_be. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Coly Li <colyli@suse.de> Link: https://lore.kernel.org/r/20211020143812.6403-9-colyli@suse.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/btree.c')
-rw-r--r--drivers/md/bcache/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
index 0595559de174..93b67b8d31c3 100644
--- a/drivers/md/bcache/btree.c
+++ b/drivers/md/bcache/btree.c
@@ -141,7 +141,7 @@ static uint64_t btree_csum_set(struct btree *b, struct bset *i)
uint64_t crc = b->key.ptr[0];
void *data = (void *) i + 8, *end = bset_bkey_last(i);
- crc = bch_crc64_update(crc, data, end - data);
+ crc = crc64_be(crc, data, end - data);
return crc ^ 0xffffffffffffffffULL;
}