summaryrefslogtreecommitdiff
path: root/mm/memory-failure.c
diff options
context:
space:
mode:
authorMuchun Song <songmuchun@bytedance.com>2022-08-19 06:55:32 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-09-12 06:25:58 +0300
commit33febb519d673b9f574903764f13f47e65328ca5 (patch)
tree3217f129c5ebe80905a6cb0d6a8631e242cd012d /mm/memory-failure.c
parente9ff3ba7ff10490a92792faf1d3573a24fc6e5c9 (diff)
downloadlinux-33febb519d673b9f574903764f13f47e65328ca5.tar.xz
mm: hugetlb_vmemmap: simplify reset_struct_pages()
We can choose to copy three contiguous tail pages' content to the first three pages instead of copying one by one to simplify the code and reduce code size from 229 bytes to 63 bytes. The BUILD_BUG_ON() aims to avoid out-of-bounds accesses. Link: https://lkml.kernel.org/r/20220819035532.6189-1-songmuchun@bytedance.com Signed-off-by: Muchun Song <songmuchun@bytedance.com> Reviewed-by: Miaohe Lin <linmiaohe@huawei.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions