]> Git Repo - linux.git/blobdiff - include/linux/genalloc.h
dm: ensure bio submission follows a depth-first tree walk
[linux.git] / include / linux / genalloc.h
index 6dfec4d638df3e7b10811191aba871e421c8d724..872f930f1b06d4bbb21f1d371a1d63d306d695dd 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <linux/types.h>
 #include <linux/spinlock_types.h>
+#include <linux/atomic.h>
 
 struct device;
 struct device_node;
@@ -71,7 +72,7 @@ struct gen_pool {
  */
 struct gen_pool_chunk {
        struct list_head next_chunk;    /* next chunk in pool */
-       atomic_t avail;
+       atomic_long_t avail;
        phys_addr_t phys_addr;          /* physical starting address of memory chunk */
        unsigned long start_addr;       /* start address of memory chunk */
        unsigned long end_addr;         /* end address of memory chunk (inclusive) */
This page took 0.042701 seconds and 4 git commands to generate.