Commit 468e6a20afaccb67e2a7d7f60d301f90e1c6f301
1 parent
1df647197c
Exists in
master
and in
20 other branches
writeback: remove vm_dirties and task->dirties
They are not used any more. Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Showing 4 changed files with 0 additions and 16 deletions Side-by-side Diff
include/linux/init_task.h
include/linux/sched.h
... | ... | @@ -1521,7 +1521,6 @@ |
1521 | 1521 | #ifdef CONFIG_FAULT_INJECTION |
1522 | 1522 | int make_it_fail; |
1523 | 1523 | #endif |
1524 | - struct prop_local_single dirties; | |
1525 | 1524 | /* |
1526 | 1525 | * when (nr_dirtied >= nr_dirtied_pause), it's time to call |
1527 | 1526 | * balance_dirty_pages() for some dirty throttling pause |
kernel/fork.c
... | ... | @@ -162,7 +162,6 @@ |
162 | 162 | |
163 | 163 | void free_task(struct task_struct *tsk) |
164 | 164 | { |
165 | - prop_local_destroy_single(&tsk->dirties); | |
166 | 165 | account_kernel_stack(tsk->stack, -1); |
167 | 166 | free_thread_info(tsk->stack); |
168 | 167 | rt_mutex_debug_task_free(tsk); |
... | ... | @@ -273,10 +272,6 @@ |
273 | 272 | goto out; |
274 | 273 | |
275 | 274 | tsk->stack = ti; |
276 | - | |
277 | - err = prop_local_init_single(&tsk->dirties); | |
278 | - if (err) | |
279 | - goto out; | |
280 | 275 | |
281 | 276 | setup_thread_stack(tsk, orig); |
282 | 277 | clear_user_return_notifier(tsk); |
mm/page-writeback.c
... | ... | @@ -128,7 +128,6 @@ |
128 | 128 | * |
129 | 129 | */ |
130 | 130 | static struct prop_descriptor vm_completions; |
131 | -static struct prop_descriptor vm_dirties; | |
132 | 131 | |
133 | 132 | /* |
134 | 133 | * couple the period to the dirty_ratio: |
... | ... | @@ -154,7 +153,6 @@ |
154 | 153 | { |
155 | 154 | int shift = calc_period_shift(); |
156 | 155 | prop_change_shift(&vm_completions, shift); |
157 | - prop_change_shift(&vm_dirties, shift); | |
158 | 156 | |
159 | 157 | writeback_set_ratelimit(); |
160 | 158 | } |
... | ... | @@ -235,11 +233,6 @@ |
235 | 233 | } |
236 | 234 | EXPORT_SYMBOL_GPL(bdi_writeout_inc); |
237 | 235 | |
238 | -void task_dirty_inc(struct task_struct *tsk) | |
239 | -{ | |
240 | - prop_inc_single(&vm_dirties, &tsk->dirties); | |
241 | -} | |
242 | - | |
243 | 236 | /* |
244 | 237 | * Obtain an accurate fraction of the BDI's portion. |
245 | 238 | */ |
... | ... | @@ -1395,7 +1388,6 @@ |
1395 | 1388 | |
1396 | 1389 | shift = calc_period_shift(); |
1397 | 1390 | prop_descriptor_init(&vm_completions, shift); |
1398 | - prop_descriptor_init(&vm_dirties, shift); | |
1399 | 1391 | } |
1400 | 1392 | |
1401 | 1393 | /** |
... | ... | @@ -1724,7 +1716,6 @@ |
1724 | 1716 | __inc_zone_page_state(page, NR_DIRTIED); |
1725 | 1717 | __inc_bdi_stat(mapping->backing_dev_info, BDI_RECLAIMABLE); |
1726 | 1718 | __inc_bdi_stat(mapping->backing_dev_info, BDI_DIRTIED); |
1727 | - task_dirty_inc(current); | |
1728 | 1719 | task_io_account_write(PAGE_CACHE_SIZE); |
1729 | 1720 | } |
1730 | 1721 | } |