md: fix bug with linear hot-add and elsewhere
[linux-drm-fsl-dcu.git] / drivers / md / dm-hw-handler.h
index 15f5629e231ad93fbab9424815c1495655b242fc..e0832e6fcf36c0747c06ae3035c12567e80df797 100644 (file)
@@ -16,6 +16,7 @@
 struct hw_handler_type;
 struct hw_handler {
        struct hw_handler_type *type;
+       struct mapped_device *md;
        void *context;
 };
 
@@ -32,7 +33,7 @@ struct hw_handler_type {
        void (*destroy) (struct hw_handler *hwh);
 
        void (*pg_init) (struct hw_handler *hwh, unsigned bypassed,
-                        struct path *path);
+                        struct dm_path *path);
        unsigned (*error) (struct hw_handler *hwh, struct bio *bio);
        int (*status) (struct hw_handler *hwh, status_type_t type,
                       char *result, unsigned int maxlen);