summaryrefslogtreecommitdiff
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-05-24 03:25:46 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-05-24 03:25:46 -0700
commitdf87ea9f90375ffd2cd993f49ea9cf1e035d4615 (patch)
treee2a6160b3d5077a0fb4c3a580c6a3c30ba8f1c86 /fs/block_dev.c
parent777e760f8901e481ad703e32ecc440b784c4a4bc (diff)
[PATCH] kdev_t -> bdev cleanups [1/2]
- kill the last caller of get_hardsect_size() (switching it to bdev_hardsect_size()). - kill blk_get_queue() and switching to bdev_get_queue()
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 6d19c3beadf7..21c5b08eb8a4 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -56,14 +56,13 @@ static void kill_bdev(struct block_device *bdev)
int set_blocksize(struct block_device *bdev, int size)
{
int oldsize;
- kdev_t dev = to_kdev_t(bdev->bd_dev);
/* Size must be a power of two, and between 512 and PAGE_SIZE */
if (size > PAGE_SIZE || size < 512 || (size & (size-1)))
return -EINVAL;
/* Size cannot be smaller than the size supported by the device */
- if (size < get_hardsect_size(dev))
+ if (size < bdev_hardsect_size(bdev))
return -EINVAL;
oldsize = bdev->bd_block_size;