From d0149da224b63c8bf712f3ad20ae4baea165145a Mon Sep 17 00:00:00 2001 From: Mike Gerdts Date: Wed, 2 Feb 2022 17:28:49 -0600 Subject: [PATCH] blob: remove unused inline functions bs_back_dev_lba_to_io_unit() and bs_num_pages_to_cluster_boundary() are unused inline functions. The last consumer (by the earlier _spdk_* name) was removed in commit 6609b776. Change-Id: Ib1babfed8002fb44451b337aa0db66c15a6805d2 Signed-off-by: Mike Gerdts Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11561 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Aleksey Marchuk --- lib/blob/blobstore.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/blob/blobstore.h b/lib/blob/blobstore.h index e1f6ce44b..4f9161fcf 100644 --- a/lib/blob/blobstore.h +++ b/lib/blob/blobstore.h @@ -536,12 +536,6 @@ bs_io_unit_to_back_dev_lba(struct spdk_blob *blob, uint64_t io_unit) return io_unit * (blob->bs->io_unit_size / blob->back_bs_dev->blocklen); } -static inline uint64_t -bs_back_dev_lba_to_io_unit(struct spdk_blob *blob, uint64_t lba) -{ - return lba * (blob->back_bs_dev->blocklen / blob->bs->io_unit_size); -} - static inline uint64_t bs_cluster_to_extent_table_id(uint64_t cluster_num) { @@ -630,19 +624,6 @@ bs_num_io_units_to_cluster_boundary(struct spdk_blob *blob, uint64_t io_unit) return io_units_per_cluster - (io_unit % io_units_per_cluster); } -/* Given a page offset into a blob, look up the number of pages until the - * next cluster boundary. - */ -static inline uint32_t -bs_num_pages_to_cluster_boundary(struct spdk_blob *blob, uint64_t page) -{ - uint64_t pages_per_cluster; - - pages_per_cluster = blob->bs->pages_per_cluster; - - return pages_per_cluster - (page % pages_per_cluster); -} - /* Given an io_unit offset into a blob, look up the number of pages into blob to beginning of current cluster */ static inline uint32_t bs_io_unit_to_cluster_start(struct spdk_blob *blob, uint64_t io_unit)