Skip to content
Commit c43bc03d authored by Xianting Tian's avatar Xianting Tian Committed by Linus Torvalds
Browse files

mm/memory-failure: do pgoff calculation before for_each_process()



There is no need to calculate pgoff in each loop of for_each_process(), so
move it to the place before for_each_process(), which can save some CPU
cycles.

Signed-off-by: default avatarXianting Tian <tian.xianting@h3c.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarNaoya Horiguchi <naoya.horiguchi@nec.com>
Link: http://lkml.kernel.org/r/20200818082647.34322-1-tian.xianting@h3c.com


Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 41a04814
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment