Add support for the iomem_align option
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 71ae71db2c876749e1445996a8a980d8aafe0253..b19101c20a4924892610bd78b0f6d645f3b93e9b 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -202,6 +202,7 @@ struct thread_options {
        unsigned long long zone_size;
        unsigned long long zone_skip;
        enum fio_memtype mem_type;
+       unsigned int mem_align;
 
        unsigned int stonewall;
        unsigned int new_group;
@@ -655,4 +656,9 @@ static inline int should_check_rate(struct thread_data *td,
        return ret;
 }
 
+static inline int is_power_of_2(unsigned int val)
+{
+       return (val != 0 && ((val & (val - 1)) == 0));
+}
+
 #endif