block: Change direct_access calling convention
[deliverable/linux.git] / include / linux / blkdev.h
index 92f4b4b288dd57005b30c2b76d7ce5aed070c0d4..e9086be6d9a02415b45f1bbb7fd7b70834e6618e 100644 (file)
@@ -1601,8 +1601,8 @@ struct block_device_operations {
        int (*rw_page)(struct block_device *, sector_t, struct page *, int rw);
        int (*ioctl) (struct block_device *, fmode_t, unsigned, unsigned long);
        int (*compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long);
-       int (*direct_access) (struct block_device *, sector_t,
-                                               void **, unsigned long *);
+       long (*direct_access)(struct block_device *, sector_t,
+                                       void **, unsigned long *pfn, long size);
        unsigned int (*check_events) (struct gendisk *disk,
                                      unsigned int clearing);
        /* ->media_changed() is DEPRECATED, use ->check_events() instead */
@@ -1620,6 +1620,8 @@ extern int __blkdev_driver_ioctl(struct block_device *, fmode_t, unsigned int,
 extern int bdev_read_page(struct block_device *, sector_t, struct page *);
 extern int bdev_write_page(struct block_device *, sector_t, struct page *,
                                                struct writeback_control *);
+extern long bdev_direct_access(struct block_device *, sector_t, void **addr,
+                                               unsigned long *pfn, long size);
 #else /* CONFIG_BLOCK */
 
 struct block_device;
This page took 0.025465 seconds and 5 git commands to generate.