]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/page-writeback.c: place "not" inside of unlikely() statement in wb_domain_writeout...
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 24 Feb 2017 22:59:24 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 01:46:56 +0000 (17:46 -0800)
commit517663edd6b5d2a822469885994f34e092e2cf9f
treef7c566f5810e5580084977a21cab72833aaed5ed
parentc137a2757b88658ce61c74b25ff650ecda7f09d8
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/20170206120035.3c2e2b91@gandalf.local.home
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page-writeback.c