diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-18 04:45:23 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-18 04:45:23 -0800 |
| commit | b23c4682e53a5cccb647dda89752ecff8cf67824 (patch) | |
| tree | f36c43cbb9a4612eee4e049af5726bc9e3cddee9 /include | |
| parent | 80c085f996a1e514e39de845eba065b9b3a79bc6 (diff) | |
[PATCH] Remove BDEV_RAW and friends
These no longer do anything.
This patch changes modules API. It was acked by Arjan@RH and Hubert@Suse.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fs.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index fb2306154b75..4d46f5f8e48b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1132,14 +1132,13 @@ extern void vfs_caches_init(unsigned long); #define __getname() kmem_cache_alloc(names_cachep, SLAB_KERNEL) #define putname(name) kmem_cache_free(names_cachep, (void *)(name)) -enum {BDEV_FILE, BDEV_SWAP, BDEV_FS, BDEV_RAW}; extern int register_blkdev(unsigned int, const char *); extern int unregister_blkdev(unsigned int, const char *); extern struct block_device *bdget(dev_t); 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, int); +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; extern struct file_operations def_chr_fops; @@ -1147,8 +1146,8 @@ extern struct file_operations bad_sock_fops; extern struct file_operations def_fifo_fops; extern int ioctl_by_bdev(struct block_device *, unsigned, unsigned long); extern int blkdev_ioctl(struct inode *, struct file *, unsigned, unsigned long); -extern int blkdev_get(struct block_device *, mode_t, unsigned, int); -extern int blkdev_put(struct block_device *, int); +extern int blkdev_get(struct block_device *, mode_t, unsigned); +extern int blkdev_put(struct block_device *); extern int bd_claim(struct block_device *, void *); extern void bd_release(struct block_device *); extern void blk_run_queues(void); @@ -1167,8 +1166,8 @@ extern int chrdev_open(struct inode *, struct file *); extern const char *__bdevname(dev_t, char *buffer); extern const char *bdevname(struct block_device *bdev, char *buffer); extern struct block_device *lookup_bdev(const char *); -extern struct block_device *open_bdev_excl(const char *, int, int, void *); -extern void close_bdev_excl(struct block_device *, int); +extern struct block_device *open_bdev_excl(const char *, int, void *); +extern void close_bdev_excl(struct block_device *); extern void init_special_inode(struct inode *, umode_t, dev_t); |
