]> Git Repo - linux.git/commit
mm: khugepaged: make khugepaged_enter() void function
authorYang Shi <[email protected]>
Thu, 19 May 2022 21:08:49 +0000 (14:08 -0700)
committerakpm <[email protected]>
Thu, 19 May 2022 21:08:49 +0000 (14:08 -0700)
commitd2081b2bf8195b8239c67fdd61518e077da7cbec
treea3e8694b4d3021942841883f7bd5123f318b5f95
parent78d12c19e02d8151b1c82228ae6bb10f174a68e2
mm: khugepaged: make khugepaged_enter() void function

The most callers of khugepaged_enter() don't care about the return value.
Only dup_mmap(), anonymous THP page fault and MADV_HUGEPAGE handle the
error by returning -ENOMEM.  Actually it is not harmful for them to ignore
the error case either.  It also sounds overkilling to fail fork() and page
fault early due to khugepaged_enter() error, and MADV_HUGEPAGE does set
VM_HUGEPAGE flag regardless of the error.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Yang Shi <[email protected]>
Acked-by: Song Liu <[email protected]>
Acked-by: Vlastmil Babka <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Miaohe Lin <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Theodore Ts'o <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
include/linux/khugepaged.h
kernel/fork.c
mm/huge_memory.c
mm/khugepaged.c
This page took 0.075526 seconds and 4 git commands to generate.