From: Greg KH <gregkh@linuxfoundation.org>
To: Weilong Chen <chenweilong@huawei.com>
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
Date: Sun, 27 Jun 2021 12:46:21 +0200 [thread overview]
Message-ID: <YNhW/XQlZxfJR9Us@kroah.com> (raw)
In-Reply-To: <20210626011655.351057-1-chenweilong@huawei.com>
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 <chenweilong@huawei.com>
> ---
> 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?
next prev parent reply other threads:[~2021-06-27 10:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-26 1:16 [linux-next] rootfs: rootflags take effect when mount rootfs Weilong Chen
2021-06-27 10:46 ` Greg KH [this message]
2021-06-28 1:47 ` chenweilong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YNhW/XQlZxfJR9Us@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=chenweilong@huawei.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox