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=-16.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,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 0393DC48BC2 for ; Sun, 27 Jun 2021 10:46:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CF8A161C2F for ; Sun, 27 Jun 2021 10:46:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbhF0Ksu (ORCPT ); Sun, 27 Jun 2021 06:48:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:48358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbhF0Ksr (ORCPT ); Sun, 27 Jun 2021 06:48:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72C2561C32; Sun, 27 Jun 2021 10:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624790783; bh=PV6l6fYWNTaGKab6hbcfIhwT3cpcANIbwQrktMaN8dA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dUxE0iXTJ2uCEdbolda7dX4IWa7cjbu+gEPMxYaBkDB/J/eJcjU66F2atIQrL8Hc2 oJ5XEVQ7zrDI94H/ZN3bRwIrrtgTdWtIqH5KksajoySI7ms7oH7bHcvi5+rrsvdtj6 E/f7p+vNi4OXS8JymOh6R3jdGc1/FbWmqa4Rmjgo= Date: Sun, 27 Jun 2021 12:46:21 +0200 From: Greg KH To: Weilong Chen Cc: viro@zeniv.linux.org.uk, keescook@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [linux-next] rootfs: rootflags take effect when mount rootfs Message-ID: References: <20210626011655.351057-1-chenweilong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210626011655.351057-1-chenweilong@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 26, 2021 at 09:16:55AM +0800, Weilong Chen wrote: > The kernel root filesystem may use the rootflags parameters > when mount, especially for tmpfs, to setup a variety of features. > > For example: > 1. Add 'rootflags=huge=always' to boot args. > 2. When the OS bootup: > rootfs on / type rootfs (..., huge=always) > Then we can get the hugepage performance improvement of tmpfs. > > Signed-off-by: Weilong Chen > --- > fs/namespace.c | 5 +++-- > include/linux/init.h | 2 +- > init/do_mounts.c | 4 +++- > 3 files changed, 7 insertions(+), 4 deletions(-) No documentation update for this new user/kernel api you added?