diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-04-30 19:57:49 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-04-30 19:57:49 -0700 |
| commit | ec769fb0caa2c525910e06f679b546a9a3e75a89 (patch) | |
| tree | c2629c2110103071b49a53e62c79ea7dae8728cd /include/linux/blkdev.h | |
| parent | aacb4fe3f2f313edfd4f0da8d0822ccb7c084d6b (diff) | |
[PATCH] (3/6) blksize_size[] removal
- switch block_size() to struct block_device *.
Diffstat (limited to 'include/linux/blkdev.h')
| -rw-r--r-- | include/linux/blkdev.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 01497e05a70a..2bb86494e555 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -372,9 +372,10 @@ extern inline unsigned int blksize_bits(unsigned int size) return bits; } -extern inline unsigned int block_size(kdev_t dev) +extern inline unsigned int block_size(struct block_device *bdev) { int retval = BLOCK_SIZE; + kdev_t dev = to_kdev_t(bdev->bd_dev); int major = major(dev); if (blksize_size[major]) { |
