From patchwork Wed Nov 13 06:57:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baolin Wang X-Patchwork-Id: 13873207 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52B41D41C0B for ; Wed, 13 Nov 2024 06:57:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D9ACF6B00B0; Wed, 13 Nov 2024 01:57:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CF9C86B00B3; Wed, 13 Nov 2024 01:57:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B9A766B00B5; Wed, 13 Nov 2024 01:57:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 8E8456B00B0 for ; Wed, 13 Nov 2024 01:57:57 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 1D1DCC0859 for ; Wed, 13 Nov 2024 06:57:57 +0000 (UTC) X-FDA: 82780166112.16.750950D Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by imf20.hostedemail.com (Postfix) with ESMTP id B74E41C000C for ; Wed, 13 Nov 2024 06:57:01 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=linux.alibaba.com header.s=default header.b=frLA4QKV; dmarc=pass (policy=none) header.from=linux.alibaba.com; spf=pass (imf20.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.124 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731480987; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=oqsze9NznjQ0CsDYvscc1QQzoVPJPLXccLE0cyDkLNM=; b=RKOysXd4j1EPkZWcZuzz/eZYm0OoV799xyWAylryXFAuYyZZ0VWvUCyIG6mn3BbktapJMW b0lgEJY7bcJ1hT8k/xA/CyZp7DC2e+WtbrNjPYph1RSFf8412uD68RXlaILX9x32vNJMoB 4UIQf2WEhsSTOcVTAhJbtuUOHXUJPLs= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=linux.alibaba.com header.s=default header.b=frLA4QKV; dmarc=pass (policy=none) header.from=linux.alibaba.com; spf=pass (imf20.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.124 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731480987; a=rsa-sha256; cv=none; b=4V1/q2FFzlQGQ+6ZBAuNKN5kpCZQ3r4HVy7xutUbaNwTb75hR4/r8rvON9/H4udGmZxfQD CuB2eHRM0jJRJVZYxAlRg6f6JHk4YAqbw9aAibqkIks7PkalMPSqpSl75IExXVneZ7UoQP XfkCV+Lo8a7W5Ce3Th+GxEiEyQZ4OW8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1731481071; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=oqsze9NznjQ0CsDYvscc1QQzoVPJPLXccLE0cyDkLNM=; b=frLA4QKVLzdazNre/RI2/fx9DqgCetC7hmNUcvbWXXCheVHb7DSu/GonEC7Rjq1P2C6J3dIsY+wM+wE7sqA5zHH0A28wdUkPLl4pzWwT17JkYcjrfcXMpaHvimXoCunvE4+EdQjmkSCA5Z09XHrFnKW2dUanzNbWqRH/U13KkrY= Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0WJK5KpL_1731481070 cluster:ay36) by smtp.aliyun-inc.com; Wed, 13 Nov 2024 14:57:50 +0800 From: Baolin Wang To: baolin.wang@linux.alibaba.com Cc: 21cnbao@gmail.com, akpm@linux-foundation.org, da.gomez@samsung.com, david@redhat.com, hughd@google.com, ioworker0@gmail.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, ryan.roberts@arm.com, wangkefeng.wang@huawei.com, willy@infradead.org Subject: [PATCH] docs: tmpfs: update the huge folios policy for tmpfs and shmem fix Date: Wed, 13 Nov 2024 14:57:46 +0800 Message-Id: <45509f49416849e6708a4fd57c988b8b0921210a.1731480582.git.baolin.wang@linux.alibaba.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: References: MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: B74E41C000C X-Stat-Signature: 4gzd1oqcs571qy33on88pcpiuy3zxcow X-HE-Tag: 1731481021-408343 X-HE-Meta: U2FsdGVkX1+5qt/SNqwOW4fkNI0jnlASACfXwGK7Zcg1PQcWiqQaWh7tovd+YEfaQrl8TweNzBT8qOq/n84pFCNHlbs18RLSRveLI8GkJuM+8m+r1jI9JQfE2BhvyIK5nSEI+HdT+6rmVQznzv7LOwtgqT0ZuOElL7/h6Vjtb1jw6GMQRVewgT8Fs5YMXgVx/4sgQc7Y6AjZ9/DhLRto738JT2N+9AS8FcuNcJAs3JPGYTmU61w9j59H2TGAfTC8/eKlZIXCTC+XcbTjzP4lPOSoeoYnQN6TQSatPkAESA4GzfSiaMJ+YHxYJH1E671B1yzl1Bf9+/aJWDcqKeXefInb46MwCHlN06Qg0OltY0sK3aD5djvbwf5Ve+/8os7P/42A054C3z8RP+Qt4qAruPd1GSGUCpPP0OWib/1dJrwR0NZ+34k7fE9/tdrVihnlNNPnWa4Ij7gtbNE9L5UkFlFrLmr6ejGs749ZsCN2UWdBUILM1JLfU5B9HgyIvGuiS9wURJTXnvxZgqF6igWkPdWcGpbrN8EYeKYlN6941ZNcnhEFlmjKp00Adt3hBojz/3Szs4eu+D/CggFxMfD48aL0LkUeyx0voHgjWneFlZZZ4Q8j1OfKa1pC/XLoIzFGB/aFy6oIq4ordOsclv+bKapq5TZsUhm07e6SesVdMTPPLr0uiXS+09Q2sogCdt2FhkZBVQn4MwAlCGta/wHWYVI9zQBovpl+FsF3lf40VvnFars/KkDnBqOKBsKB6WjAd7UedgeK0YHLT8OUKnFQdOY85futWsbh1MiSj6DjrZWrmlr33uhRzBPcfx0ax9+SiD+l9Oar4wJeXbhULPmE2ZQBPwKzciac9QY3yM4Kzk/AlAN9IX6f190bj5q1eUWikCA7m7ZYMmZf4GG+Q4L9uvij9H014yIcbOqrinO/sC+wsmhzeO6rZBSgzTtikeO5TLO3tZmQtDjaLy37wrD LoK/Jegv wVO8uhvmu2dKP5OXnqFGdQkguTKSrpm2V1/qF1VENMauMMg7N7IxGuP4SfGe7lHQXs6HYBaXNiG51PlPrQ3jNDWhp0jD3cnut5/8kxcbN33wAwsqqUlOBvmn1OfQQ+lZc9xIEJkUeuCIE3yLWVb25hOToZ97zrxQ/hvgT1yfdqLSi1peNjbu5BOfoF+bMOTCxNAIZiHVoPUXIIhTqpTfemxV5wX8Y0af6K7ZD 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: List-Subscribe: List-Unsubscribe: Drop 'fadvise()' from the doc, since fadvise() has no HUGEPAGE advise currently. Signed-off-by: Baolin Wang Reviewed-by: Barry Song --- Documentation/admin-guide/mm/transhuge.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/admin-guide/mm/transhuge.rst b/Documentation/admin-guide/mm/transhuge.rst index ba6edff728ed..333958ef0d5f 100644 --- a/Documentation/admin-guide/mm/transhuge.rst +++ b/Documentation/admin-guide/mm/transhuge.rst @@ -382,10 +382,10 @@ never within_size Only allocate huge page if it will be fully within i_size. - Also respect fadvise()/madvise() hints; + Also respect madvise() hints; advise - Only allocate huge pages if requested with fadvise()/madvise(); + Only allocate huge pages if requested with madvise(); Remember, that the kernel may use huge pages of all available sizes, and that no fine control as for the internal tmpfs mount is available. @@ -438,10 +438,10 @@ never within_size Only allocate huge page if it will be fully within i_size. - Also respect fadvise()/madvise() hints; + Also respect madvise() hints; advise - Only allocate huge pages if requested with fadvise()/madvise(); + Only allocate huge pages if requested with madvise(); Need of application restart ===========================