]> git.hungrycats.org Git - linux/commitdiff
[PATCH] don't export blkdev_open and def_blk_ops
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Oct 2004 01:02:05 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:02:05 +0000 (18:02 -0700)
Already since 2.4 all block devices use block_device_operations and
shouldn't deal with file operations directly.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/block_dev.c
include/linux/fs.h

index 5c3f09b861728fcc7baa0adb3721b32e2206e011..28aac88114dec0a7192f85d25a47b8c7bee1ccd8 100644 (file)
@@ -666,7 +666,7 @@ int blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags)
 
 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;
        int res;
@@ -695,8 +695,6 @@ int blkdev_open(struct inode * inode, struct file * filp)
        return res;
 }
 
-EXPORT_SYMBOL(blkdev_open);
-
 int blkdev_put(struct block_device *bdev)
 {
        int ret = 0;
@@ -798,8 +796,6 @@ struct file_operations def_blk_fops = {
        .sendfile       = generic_file_sendfile,
 };
 
-EXPORT_SYMBOL(def_blk_fops);
-
 int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg)
 {
        int res;
index 2a13baa4250b5ee2880e14adad99a24b159555f1..dc457c3fede2f91d3e2891544df5e9ab3b321e77 100644 (file)
@@ -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_forget(struct inode *inode);
 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 file_operations def_blk_fops;
 extern struct address_space_operations def_blk_aops;