summaryrefslogtreecommitdiff
path: root/include/linux/asn1_decoder.h
diff options
context:
space:
mode:
authorBalbir Singh <bsingharora@gmail.com>2018-12-28 11:33:24 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2018-12-28 23:11:46 +0300
commit5eb570a8d9248e0c1358078a59916d0e337e695b (patch)
tree9163f5c55857e2439bd9c2d37919a6e79d08218e /include/linux/asn1_decoder.h
parentc8f61cfc871fadfb73ad3eacd64fda457279e911 (diff)
downloadlinux-5eb570a8d9248e0c1358078a59916d0e337e695b.tar.xz
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>
Diffstat (limited to 'include/linux/asn1_decoder.h')
0 files changed, 0 insertions, 0 deletions