Skip to content

Commit 3c4fae2

Browse files
Coly Liaxboe
authored andcommitted
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 <colyli@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 421cf1c commit 3c4fae2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/md/bcache/bcache.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,6 @@ struct bbio {
757757
#define btree_default_blocks(c) \
758758
((unsigned int) ((PAGE_SECTORS * (c)->btree_pages) >> (c)->block_bits))
759759

760-
#define bucket_pages(c) ((c)->sb.bucket_size / PAGE_SECTORS)
761760
#define bucket_bytes(c) ((c)->sb.bucket_size << 9)
762761
#define block_bytes(ca) ((ca)->sb.block_size << 9)
763762

0 commit comments

Comments
 (0)