From: Coly Li Date: Thu, 1 Oct 2020 06:50:51 +0000 (+0800) Subject: bcache: remove useless bucket_pages() X-Git-Tag: v5.10-rc1~165^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c4fae29826c5fc588aba946189b95dd9fb5e4e9;p=thirdparty%2Fkernel%2Flinux.git bcache: remove useless bucket_pages() It seems alloc_bucket_pages() is the only user of bucket_pages(). Considering alloc_bucket_pages() is removed from bcache code, it is safe to remove the useless macro bucket_pages() now. Signed-off-by: Coly Li Reviewed-by: Hannes Reinecke Signed-off-by: Jens Axboe --- diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index 29bec61cafbb4..48a2585b6bbbc 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h @@ -757,7 +757,6 @@ struct bbio { #define btree_default_blocks(c) \ ((unsigned int) ((PAGE_SECTORS * (c)->btree_pages) >> (c)->block_bits)) -#define bucket_pages(c) ((c)->sb.bucket_size / PAGE_SECTORS) #define bucket_bytes(c) ((c)->sb.bucket_size << 9) #define block_bytes(ca) ((ca)->sb.block_size << 9)