diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-10-08 13:26:20 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-21 07:47:20 -0400 |
commit | 08f85851215100d0eebf026810955ee6ad456c38 (patch) | |
tree | bdc0034edc2e3c49fa832ef08d13de190374049a /include/linux/fs.h | |
parent | 647b3d0084158c47b1aea8f34d13cab9cd0a5b49 (diff) |
[PATCH] move block_device_operations to blkdev.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 5ab5579a5162..58bbf689fef7 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1270,20 +1270,7 @@ int generic_osync_inode(struct inode *, struct address_space *, int); | |||
1270 | * to have different dirent layouts depending on the binary type. | 1270 | * to have different dirent layouts depending on the binary type. |
1271 | */ | 1271 | */ |
1272 | typedef int (*filldir_t)(void *, const char *, int, loff_t, u64, unsigned); | 1272 | typedef int (*filldir_t)(void *, const char *, int, loff_t, u64, unsigned); |
1273 | 1273 | struct block_device_operations; | |
1274 | struct block_device_operations { | ||
1275 | int (*open) (struct inode *, struct file *); | ||
1276 | int (*release) (struct inode *, struct file *); | ||
1277 | int (*ioctl) (struct inode *, struct file *, unsigned, unsigned long); | ||
1278 | long (*unlocked_ioctl) (struct file *, unsigned, unsigned long); | ||
1279 | long (*compat_ioctl) (struct file *, unsigned, unsigned long); | ||
1280 | int (*direct_access) (struct block_device *, sector_t, | ||
1281 | void **, unsigned long *); | ||
1282 | int (*media_changed) (struct gendisk *); | ||
1283 | int (*revalidate_disk) (struct gendisk *); | ||
1284 | int (*getgeo)(struct block_device *, struct hd_geometry *); | ||
1285 | struct module *owner; | ||
1286 | }; | ||
1287 | 1274 | ||
1288 | /* These macros are for out of kernel modules to test that | 1275 | /* These macros are for out of kernel modules to test that |
1289 | * the kernel supports the unlocked_ioctl and compat_ioctl | 1276 | * the kernel supports the unlocked_ioctl and compat_ioctl |