libnvdimm/namespace: Differentiate between probe mapping and runtime mapping
[linux-2.6-microblaze.git] / mm / zpool.c
index a2dd910..8636692 100644 (file)
@@ -238,6 +238,22 @@ const char *zpool_get_type(struct zpool *zpool)
        return zpool->driver->type;
 }
 
+/**
+ * zpool_malloc_support_movable() - Check if the zpool support
+ * allocate movable memory
+ * @zpool:     The zpool to check
+ *
+ * This returns if the zpool support allocate movable memory.
+ *
+ * Implementations must guarantee this to be thread-safe.
+ *
+ * Returns: true if if the zpool support allocate movable memory, false if not
+ */
+bool zpool_malloc_support_movable(struct zpool *zpool)
+{
+       return zpool->driver->malloc_support_movable;
+}
+
 /**
  * zpool_malloc() - Allocate memory
  * @zpool:     The zpool to allocate from.