diff options
author | 2024-04-11 15:53:45 +0100 | |
---|---|---|
committer | 2024-05-03 02:28:28 -0400 | |
commit | 9baf50dfff1c55e704cae74c5f1c65f0fe254f1e (patch) | |
tree | 20a71ee606d3cbccc83e30243b02502355aa90c8 | |
parent | ext4: remove block_device_ejected() (diff) | |
download | wireguard-linux-9baf50dfff1c55e704cae74c5f1c65f0fe254f1e.tar.xz wireguard-linux-9baf50dfff1c55e704cae74c5f1c65f0fe254f1e.zip |
bcachefs: remove dead function bdev_sectors()
bdev_sectors() is not used hence remove it.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20240411145346.2516848-10-viro@zeniv.linux.org.uk
Acked-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Christian Brauner <brauner@kernel.org>
-rw-r--r-- | fs/bcachefs/util.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index 5cf885b09986..5d2c470a49ac 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -445,11 +445,6 @@ static inline unsigned fract_exp_two(unsigned x, unsigned fract_bits) void bch2_bio_map(struct bio *bio, void *base, size_t); int bch2_bio_alloc_pages(struct bio *, size_t, gfp_t); -static inline sector_t bdev_sectors(struct block_device *bdev) -{ - return bdev->bd_inode->i_size >> 9; -} - #define closure_bio_submit(bio, cl) \ do { \ closure_get(cl); \ |