memblock: remove memblock_{set,clear}_region_flags
[sfrench/cifs-2.6.git] / include / linux / device-mapper.h
index e528baebad6964124e6287a890cd12f81bffa561..b0672756d0562697238cb9cf53775c3c48d87a4a 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <linux/bio.h>
 #include <linux/blkdev.h>
+#include <linux/dm-ioctl.h>
 #include <linux/math64.h>
 #include <linux/ratelimit.h>
 
@@ -315,12 +316,6 @@ struct dm_target {
         * whether or not its underlying devices have support.
         */
        bool discards_supported:1;
-
-       /*
-        * Set if the target required discard bios to be split
-        * on max_io_len boundary.
-        */
-       bool split_discard_bios:1;
 };
 
 /* Each target can link one of these into the table */
@@ -431,6 +426,14 @@ void dm_remap_zone_report(struct dm_target *ti, sector_t start,
                          struct blk_zone *zones, unsigned int *nr_zones);
 union map_info *dm_get_rq_mapinfo(struct request *rq);
 
+/*
+ * Device mapper functions to parse and create devices specified by the
+ * parameter "dm-mod.create="
+ */
+int __init dm_early_create(struct dm_ioctl *dmi,
+                          struct dm_target_spec **spec_array,
+                          char **target_params_array);
+
 struct queue_limits *dm_get_queue_limits(struct mapped_device *md);
 
 /*
@@ -609,7 +612,7 @@ do {                                                                        \
  */
 #define dm_target_offset(ti, sector) ((sector) - (ti)->begin)
 
-static inline sector_t to_sector(unsigned long n)
+static inline sector_t to_sector(unsigned long long n)
 {
        return (n >> SECTOR_SHIFT);
 }