summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/util.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-10-18 13:11:03 +0300
committerJens Axboe <axboe@kernel.dk>2021-10-18 23:43:22 +0300
commitcda25b82c47496f2da0785af5a0aa72a8990cec2 (patch)
tree8e4be76dda1a90d14d0ed8b12e4af361cbd99c12 /drivers/md/bcache/util.h
parent6436bd90f76e75d2c5786a50203b05a9b7f7100d (diff)
downloadlinux-cda25b82c47496f2da0785af5a0aa72a8990cec2.tar.xz
bcache: remove bdev_sectors
Use the equivalent block layer helper instead. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Acked-by: Coly Li <colyli@suse.de> Link: https://lore.kernel.org/r/20211018101130.1838532-4-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/util.h')
-rw-r--r--drivers/md/bcache/util.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/md/bcache/util.h b/drivers/md/bcache/util.h
index b64460a76267..a7da7930a7fd 100644
--- a/drivers/md/bcache/util.h
+++ b/drivers/md/bcache/util.h
@@ -584,8 +584,4 @@ static inline unsigned int fract_exp_two(unsigned int x,
void bch_bio_map(struct bio *bio, void *base);
int bch_bio_alloc_pages(struct bio *bio, gfp_t gfp_mask);
-static inline sector_t bdev_sectors(struct block_device *bdev)
-{
- return bdev->bd_inode->i_size >> 9;
-}
#endif /* _BCACHE_UTIL_H */