]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hotplug: optimize clear_hwpoisoned_pages()
authorBalbir Singh <bsingharora@gmail.com>
Fri, 28 Dec 2018 08:33:24 +0000 (00:33 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 28 Dec 2018 20:11:46 +0000 (12:11 -0800)
commit746044db38ce55f0544368ac199afd5f932be062
tree9163f5c55857e2439bd9c2d37919a6e79d08218e
parent1df0b85acc79217be572648006e756a3d752918f
mm/hotplug: optimize clear_hwpoisoned_pages()

In hot remove, we try to clear poisoned pages, but a small optimization to
check if num_poisoned_pages is 0 helps remove the iteration through
nr_pages.

[akpm@linux-foundation.org: tweak comment text]
Link: http://lkml.kernel.org/r/20181102120001.4526-1-bsingharora@gmail.com
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/sparse.c