Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux

* 'urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux:
writeback: fix uninitialized task_ratelimit

+4 -4
+4 -4
mm/page-writeback.c
··· 1097 1097 pos_ratio = bdi_position_ratio(bdi, dirty_thresh, 1098 1098 background_thresh, nr_dirty, 1099 1099 bdi_thresh, bdi_dirty); 1100 - if (unlikely(pos_ratio == 0)) { 1100 + task_ratelimit = ((u64)dirty_ratelimit * pos_ratio) >> 1101 + RATELIMIT_CALC_SHIFT; 1102 + if (unlikely(task_ratelimit == 0)) { 1101 1103 pause = max_pause; 1102 1104 goto pause; 1103 1105 } 1104 - task_ratelimit = (u64)dirty_ratelimit * 1105 - pos_ratio >> RATELIMIT_CALC_SHIFT; 1106 - pause = (HZ * pages_dirtied) / (task_ratelimit | 1); 1106 + pause = HZ * pages_dirtied / task_ratelimit; 1107 1107 if (unlikely(pause <= 0)) { 1108 1108 trace_balance_dirty_pages(bdi, 1109 1109 dirty_thresh,