diff --git a/mars_aio.h b/mars_aio.h index 9e08326c..657b3666 100644 --- a/mars_aio.h +++ b/mars_aio.h @@ -62,7 +62,7 @@ struct aio_output { struct aio_threadinfo tinfo[3]; aio_context_t ctxp; wait_queue_head_t fdsync_event; - volatile bool fdsync_active; + bool fdsync_active; // statistics atomic_t total_read_count; atomic_t total_write_count; diff --git a/mars_copy.h b/mars_copy.h index 5608f9de..0cd72087 100644 --- a/mars_copy.h +++ b/mars_copy.h @@ -42,8 +42,8 @@ struct copy_mref_aspect { struct copy_brick { MARS_BRICK(copy); // parameters - volatile loff_t copy_start; - volatile loff_t copy_end; // stop working if == 0 + loff_t copy_start; + loff_t copy_end; // stop working if == 0 int io_prio; int append_mode; // 1 = passively, 2 = actively bool verify_mode; @@ -55,8 +55,8 @@ struct copy_brick { bool low_dirty; bool is_aborting; // internal - volatile bool trigger; - volatile unsigned long clash; + bool trigger; + unsigned long clash; atomic_t io_flight; atomic_t copy_flight; long long last_jiffies; diff --git a/sy_old/strategy.h b/sy_old/strategy.h index ca9ffcc2..19af47bb 100644 --- a/sy_old/strategy.h +++ b/sy_old/strategy.h @@ -56,7 +56,7 @@ struct mars_global { loff_t total_space; loff_t remaining_space; int global_version; - volatile bool main_trigger; + bool main_trigger; bool exhausted; };