mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mm/page-writeback.c: place "not" inside of unlikely() statement in wb_domain_writeout_inc()
The likely/unlikely profiler noticed that the unlikely statement in wb_domain_writeout_inc() is constantly wrong. This is due to the "not" (!) being outside the unlikely statement. It is likely that dom->period_time will be set, but unlikely that it wont be. Move the not into the unlikely statement. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Steven Rostedt (VMware) <[email protected]> Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c137a2757b
commit
517663edd6
1 changed files with 1 additions and 1 deletions
|
|
@ -580,7 +580,7 @@ static void wb_domain_writeout_inc(struct wb_domain *dom,
|
|||
__fprop_inc_percpu_max(&dom->completions, completions,
|
||||
max_prop_frac);
|
||||
/* First event after period switching was turned off? */
|
||||
if (!unlikely(dom->period_time)) {
|
||||
if (unlikely(!dom->period_time)) {
|
||||
/*
|
||||
* We can race with other __bdi_writeout_inc calls here but
|
||||
* it does not cause any harm since the resulting time when
|
||||
|
|
|
|||
Loading…
Reference in a new issue