bcache: remove useless bucket_pages()
authorColy Li <colyli@suse.de>
Thu, 1 Oct 2020 06:50:51 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Oct 2020 20:25:30 +0000 (14:25 -0600)
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 <colyli@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/bcache.h

index 29bec61cafbb422afdd2a4149bf29e31314568f6..48a2585b6bbbc45729976d1f1836fb5374b66ec3 100644 (file)
@@ -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)