summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-01-09 14:13:32 +0300
committerJens Axboe <axboe@kernel.dk>2021-01-26 23:14:03 +0300
commit2c2b9fd6b496b3616e9b9537ea0258b3040914f3 (patch)
tree53e2354e2d05c6be03b615ea313626ff03bce8e0 /include/linux
parent482e302a61f1fc62b0e13be20bc7a11a91b5832d (diff)
downloadlinux-2c2b9fd6b496b3616e9b9537ea0258b3040914f3.tar.xz
block: unexport truncate_bdev_range
truncate_bdev_range is only used in always built-in block layer code, so remove the export and the !CONFIG_BLOCK stub. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blkdev.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 20f3706b6b2e..2491e17b61c4 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1999,21 +1999,16 @@ void bdev_add(struct block_device *bdev, dev_t dev);
struct block_device *I_BDEV(struct inode *inode);
struct block_device *bdgrab(struct block_device *bdev);
void bdput(struct block_device *);
+int truncate_bdev_range(struct block_device *bdev, fmode_t mode, loff_t lstart,
+ loff_t lend);
#ifdef CONFIG_BLOCK
void invalidate_bdev(struct block_device *bdev);
-int truncate_bdev_range(struct block_device *bdev, fmode_t mode, loff_t lstart,
- loff_t lend);
int sync_blockdev(struct block_device *bdev);
#else
static inline void invalidate_bdev(struct block_device *bdev)
{
}
-static inline int truncate_bdev_range(struct block_device *bdev, fmode_t mode,
- loff_t lstart, loff_t lend)
-{
- return 0;
-}
static inline int sync_blockdev(struct block_device *bdev)
{
return 0;