From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBB73C432C3 for ; Tue, 19 Nov 2019 03:01:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9006B22318 for ; Tue, 19 Nov 2019 03:01:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="E+SJprL8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9006B22318 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2391B6B000A; Mon, 18 Nov 2019 22:01:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1EA366B000C; Mon, 18 Nov 2019 22:01:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 127736B000D; Mon, 18 Nov 2019 22:01:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0063.hostedemail.com [216.40.44.63]) by kanga.kvack.org (Postfix) with ESMTP id EC60D6B000A for ; Mon, 18 Nov 2019 22:01:24 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id 6E506180AD815 for ; Tue, 19 Nov 2019 03:01:24 +0000 (UTC) X-FDA: 76171526088.16.drain49_4662eb3a11116 X-HE-Tag: drain49_4662eb3a11116 X-Filterd-Recvd-Size: 3089 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by imf20.hostedemail.com (Postfix) with ESMTP for ; Tue, 19 Nov 2019 03:01:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574132482; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HjCpt2Gr6HzKLw7N1LqL9S4fcdyI/ZI8pHUTAOux55Y=; b=E+SJprL86P+SRj512aUV4Ya8N0phirMDfPaQzBB7y5oouVxf5F4eDPUDNx356IsqunKdZw /lKOWoZOqTNgHt5oOhHptBfxZpeY2NbFNylMNgDLKm0XBNwmoDqvAlkvKo2jw37Msm1XXs 0601HOLZB9sEinygmNokRGfIVUSr1i8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-iFMyBrpYOr-mmff9ajVmlw-1; Mon, 18 Nov 2019 22:01:19 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 76273107ACCC; Tue, 19 Nov 2019 03:01:18 +0000 (UTC) Received: from x230.com (ovpn-112-21.phx2.redhat.com [10.3.112.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7EB36610B0; Tue, 19 Nov 2019 03:01:17 +0000 (UTC) From: Rafael Aquini To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] mm: kconfig: make Transparent Hugepage Support sysfs defaults to match the documentation Date: Mon, 18 Nov 2019 22:01:02 -0500 Message-Id: <20191119030102.27559-1-aquini@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: iFMyBrpYOr-mmff9ajVmlw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Documentation/admin-guide/mm/transhuge.rst (originally in Documentation/vm/= transhuge.txt) states that TRANSPARENT_HUGEPAGE_MADVISE is the default option for THP conf= ig: " madvise will enter direct reclaim like ``always`` but only for regions that are have used madvise(MADV_HUGEPAGE). This is the default behaviour. " This patch changes mm/Kconfig to reflect that fact, accordingly. Besides keeping consistency between documentation and the code behavior, other reasons to perform this minor adjustment are noted at: https://bugzilla.redhat.com/show_bug.cgi?id=3D1772133 Signed-off-by: Rafael Aquini --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index a5dae9a7eb51..c12a559aa1e5 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -385,7 +385,7 @@ config TRANSPARENT_HUGEPAGE choice =09prompt "Transparent Hugepage Support sysfs defaults" =09depends on TRANSPARENT_HUGEPAGE -=09default TRANSPARENT_HUGEPAGE_ALWAYS +=09default TRANSPARENT_HUGEPAGE_MADVISE =09help =09 Selects the sysfs defaults for Transparent Hugepage Support. =20 --=20 2.17.2