Commit 1cd05ead authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] don't export blkdev_open and def_blk_ops

Already since 2.4 all block devices use block_device_operations and
shouldn't deal with file operations directly.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d55249d3
...@@ -666,7 +666,7 @@ int blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags) ...@@ -666,7 +666,7 @@ int blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags)
EXPORT_SYMBOL(blkdev_get); EXPORT_SYMBOL(blkdev_get);
int blkdev_open(struct inode * inode, struct file * filp) static int blkdev_open(struct inode * inode, struct file * filp)
{ {
struct block_device *bdev; struct block_device *bdev;
int res; int res;
...@@ -695,8 +695,6 @@ int blkdev_open(struct inode * inode, struct file * filp) ...@@ -695,8 +695,6 @@ int blkdev_open(struct inode * inode, struct file * filp)
return res; return res;
} }
EXPORT_SYMBOL(blkdev_open);
int blkdev_put(struct block_device *bdev) int blkdev_put(struct block_device *bdev)
{ {
int ret = 0; int ret = 0;
...@@ -798,8 +796,6 @@ struct file_operations def_blk_fops = { ...@@ -798,8 +796,6 @@ struct file_operations def_blk_fops = {
.sendfile = generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
EXPORT_SYMBOL(def_blk_fops);
int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg) int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg)
{ {
int res; int res;
......
...@@ -1255,7 +1255,6 @@ extern struct block_device *bdget(dev_t); ...@@ -1255,7 +1255,6 @@ extern struct block_device *bdget(dev_t);
extern void bd_set_size(struct block_device *, loff_t size); extern void bd_set_size(struct block_device *, loff_t size);
extern void bd_forget(struct inode *inode); extern void bd_forget(struct inode *inode);
extern void bdput(struct block_device *); extern void bdput(struct block_device *);
extern int blkdev_open(struct inode *, struct file *);
extern struct block_device *open_by_devnum(dev_t, unsigned); extern struct block_device *open_by_devnum(dev_t, unsigned);
extern struct file_operations def_blk_fops; extern struct file_operations def_blk_fops;
extern struct address_space_operations def_blk_aops; extern struct address_space_operations def_blk_aops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment