diff options
author | Jinjiang Tu <tujinjiang@huawei.com> | 2024-04-02 04:49:34 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-04-26 05:56:41 +0200 |
commit | 7edea4c6fdf23754c77582a0377791e1aa9d2700 (patch) | |
tree | ad81eda233c0d60d2cc938b2c418cfe97b06d18b /mm/hugetlb.c | |
parent | mm: use "GUP-fast" instead "fast GUP" in remaining comments (diff) | |
download | linux-7edea4c6fdf23754c77582a0377791e1aa9d2700.tar.xz linux-7edea4c6fdf23754c77582a0377791e1aa9d2700.zip |
mm/ksm: remove redundant code in ksm_fork
Since commit 3c6f33b7273a ("mm/ksm: support fork/exec for prctl"), when a
child process is forked, the MMF_VM_MERGE_ANY flag will be inherited in
mm_init(). So, it's unnecessary to set the flag in ksm_fork().
Link: https://lkml.kernel.org/r/20240402024934.1093361-1-tujinjiang@huawei.com
Signed-off-by: Jinjiang Tu <tujinjiang@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Nanyong Sun <sunnanyong@huawei.com>
Cc: Rik van Riel <riel@surriel.com>
Cc: Stefan Roesch <shr@devkernel.io>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions