]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/device-mapper.h
netvm: propagate page->pfmemalloc to skb
[mirror_ubuntu-artful-kernel.git] / include / linux / device-mapper.h
index 8bdbbfce759aff0f38ad77c32c6ef20f0ae09463..38d27a10aa5d9f922a14dd5746b9e29f34bce633 100644 (file)
@@ -72,7 +72,7 @@ typedef int (*dm_preresume_fn) (struct dm_target *ti);
 typedef void (*dm_resume_fn) (struct dm_target *ti);
 
 typedef int (*dm_status_fn) (struct dm_target *ti, status_type_t status_type,
-                            char *result, unsigned int maxlen);
+                            unsigned status_flags, char *result, unsigned maxlen);
 
 typedef int (*dm_message_fn) (struct dm_target *ti, unsigned argc, char **argv);
 
@@ -211,22 +211,28 @@ struct dm_target {
        /* Used to provide an error string from the ctr */
        char *error;
 
+       /*
+        * Set if this target needs to receive flushes regardless of
+        * whether or not its underlying devices have support.
+        */
+       bool flush_supported:1;
+
        /*
         * Set if this target needs to receive discards regardless of
         * whether or not its underlying devices have support.
         */
-       unsigned discards_supported:1;
+       bool discards_supported:1;
 
        /*
         * Set if the target required discard request to be split
         * on max_io_len boundary.
         */
-       unsigned split_discard_requests:1;
+       bool split_discard_requests:1;
 
        /*
         * Set if this target does not return zeroes on discarded blocks.
         */
-       unsigned discard_zeroes_data_unsupported:1;
+       bool discard_zeroes_data_unsupported:1;
 };
 
 /* Each target can link one of these into the table */