Lines Matching defs:dm_writecache

109 struct dm_writecache {  struct
110 struct mutex lock;
111 struct list_head lru;
112 union {
119 struct rb_root tree;
121 size_t freelist_size;
122 size_t writeback_size;
123 size_t freelist_high_watermark;
124 size_t freelist_low_watermark;
125 unsigned long max_age;
126 unsigned long pause;
128 unsigned int uncommitted_blocks;
129 unsigned int autocommit_blocks;
130 unsigned int max_writeback_jobs;
132 int error;
134 unsigned long autocommit_jiffies;
135 struct timer_list autocommit_timer;
136 struct wait_queue_head freelist_wait;
138 struct timer_list max_age_timer;
140 atomic_t bio_in_progress[2];
141 struct wait_queue_head bio_in_progress_wait[2];
143 struct dm_target *ti;
144 struct dm_dev *dev;
145 struct dm_dev *ssd_dev;
146 sector_t start_sector;
147 void *memory_map;
148 uint64_t memory_map_size;
149 size_t metadata_sectors;
150 size_t n_blocks;
151 uint64_t seq_count;
152 sector_t data_device_sectors;
153 void *block_start;
154 struct wc_entry *entries;
155 unsigned int block_size;
156 unsigned char block_size_bits;
158 bool pmem_mode:1;
159 bool writeback_fua:1;
161 bool overwrote_committed:1;
162 bool memory_vmapped:1;
164 bool start_sector_set:1;
165 bool high_wm_percent_set:1;
166 bool low_wm_percent_set:1;
167 bool max_writeback_jobs_set:1;
168 bool autocommit_blocks_set:1;
169 bool autocommit_time_set:1;
170 bool max_age_set:1;
171 bool writeback_fua_set:1;
172 bool flush_on_suspend:1;
173 bool cleaner:1;
174 bool cleaner_set:1;
175 bool metadata_only:1;
176 bool pause_set:1;
178 unsigned int high_wm_percent_value;
179 unsigned int low_wm_percent_value;
180 unsigned int autocommit_time_value;
181 unsigned int max_age_value;
182 unsigned int pause_value;
184 unsigned int writeback_all;
185 struct workqueue_struct *writeback_wq;
186 struct work_struct writeback_work;
187 struct work_struct flush_work;
189 struct dm_io_tracker iot;
191 struct dm_io_client *dm_io;
193 raw_spinlock_t endio_list_lock;
194 struct list_head endio_list;
195 struct task_struct *endio_thread;
197 struct task_struct *flush_thread;
198 struct bio_list flush_list;
200 struct dm_kcopyd_client *dm_kcopyd;
201 unsigned long *dirty_bitmap;
225 struct dm_writecache *wc; argument