]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mempolicy: clean up the code logic in queue_pages_pte_range
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 29 Apr 2022 06:16:06 +0000 (23:16 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 06:16:06 +0000 (23:16 -0700)
commit4e184fda89478ecf5bf508c248e574458882cc4d
tree2e7f796b1e20398a62d41be8c268b9a64c4856f9
parent53ccd6aba5755a7e9c2ed1cdd827961542b3cb4d
mm/mempolicy: clean up the code logic in queue_pages_pte_range

Since commit c7df7f9952c1 ("mm: mempolicy: don't have to split pmd for
huge zero page"), THP is never splited in queue_pages_pmd.  Thus 2 is
never returned now.  We can remove such unnecessary ret != 2 check and
clean up the relevant comment.  Minor improvements in readability.

Link: https://lkml.kernel.org/r/20220419122234.45083-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Yang Shi <shy828301@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mempolicy.c