summaryrefslogtreecommitdiff
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-04-30 19:58:14 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-04-30 19:58:14 -0700
commitde6285663de5541bfaf16fe5597777359e15727c (patch)
tree94276cf9ec404eef6a5909388b51d31ac912487c /fs/buffer.c
parenta9e3cad6d153a0802946d0d9cc3b8f66eade3373 (diff)
[PATCH] (5/6) blksize_size[] removal
- kill bread()/getblk()/get_hash_table() (kdev_t-using wrappers; struct block_device * counterparts are obviously still alive).
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c47
1 files changed, 1 insertions, 46 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 2fda0396498a..892136cce712 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -439,21 +439,6 @@ out:
return ret;
}
-struct buffer_head *get_hash_table(kdev_t dev, sector_t block, int size)
-{
- struct block_device *bdev;
- struct buffer_head *bh;
- bdev = bdget(kdev_t_to_nr(dev));
- if (!bdev) {
- printk("No block device for %s\n", __bdevname(dev));
- BUG();
- }
- bh = __get_hash_table(bdev, block, size);
- atomic_dec(&bdev->bd_count);
- return bh;
-}
-EXPORT_SYMBOL(get_hash_table);
-
void buffer_insert_list(spinlock_t *lock,
struct buffer_head *bh, struct list_head *list)
{
@@ -988,21 +973,6 @@ __getblk(struct block_device *bdev, sector_t block, int size)
}
}
-struct buffer_head *getblk(kdev_t dev, sector_t block, int size)
-{
- struct block_device *bdev;
- struct buffer_head *bh;
- bdev = bdget(kdev_t_to_nr(dev));
- if (!bdev) {
- printk("No block device for %s\n", __bdevname(dev));
- BUG();
- }
- bh = __getblk(bdev, block, size);
- atomic_dec(&bdev->bd_count);
- return bh;
-}
-EXPORT_SYMBOL(getblk);
-
/*
* The relationship between dirty buffers and dirty pages:
*
@@ -1071,7 +1041,7 @@ void __bforget(struct buffer_head * buf)
}
/**
- * bread() - reads a specified block and returns the bh
+ * __bread() - reads a specified block and returns the bh
* @block: number of block
* @size: size (in bytes) to read
*
@@ -1102,21 +1072,6 @@ struct buffer_head * __bread(struct block_device *bdev, int block, int size)
return NULL;
}
-struct buffer_head *bread(kdev_t dev, int block, int size)
-{
- struct block_device *bdev;
- struct buffer_head *bh;
- bdev = bdget(kdev_t_to_nr(dev));
- if (!bdev) {
- printk("No block device for %s\n", __bdevname(dev));
- BUG();
- }
- bh = __bread(bdev, block, size);
- atomic_dec(&bdev->bd_count);
- return bh;
-}
-EXPORT_SYMBOL(bread);
-
void set_bh_page(struct buffer_head *bh,
struct page *page, unsigned long offset)
{