Skip to content

Commit 9baf50d

Browse files
YuKuai-huaweiAl Viro
authored andcommitted
bcachefs: remove dead function bdev_sectors()
bdev_sectors() is not used hence remove it. Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Al Viro <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Kent Overstreet <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 559428a commit 9baf50d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/bcachefs/util.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,6 @@ static inline unsigned fract_exp_two(unsigned x, unsigned fract_bits)
445445
void bch2_bio_map(struct bio *bio, void *base, size_t);
446446
int bch2_bio_alloc_pages(struct bio *, size_t, gfp_t);
447447

448-
static inline sector_t bdev_sectors(struct block_device *bdev)
449-
{
450-
return bdev->bd_inode->i_size >> 9;
451-
}
452-
453448
#define closure_bio_submit(bio, cl) \
454449
do { \
455450
closure_get(cl); \

0 commit comments

Comments
 (0)