Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Gabriel Krisman Bertazi <krisman@suse.de>
To: Tao Cui <cui.tao@linux.dev>,
	hughd@google.com, david@kernel.org, akpm@linux-foundation.org
Cc: linux-mm@kvack.org, baolin.wang@linux.alibaba.com,
	andrealmeid@igalia.com, linux-fsdevel@vger.kernel.org,
	cui.tao@linux.dev, Tao Cui <cuitao@kylinos.cn>
Subject: Re: [PATCH 0/2] tmpfs: fix casefold flag inheritance and document mount constraints
Date: Mon, 23 Nov 2026 10:40:16 -0500	[thread overview]
Message-ID: <878q2jeeu7.fsf@cartola> (raw)
In-Reply-To: <20261123051629.2547645-1-cui.tao@linux.dev>

Tao Cui <cui.tao@linux.dev> writes:

> From: Tao Cui <cuitao@kylinos.cn>
>
> Files created in a casefold tmpfs directory inherit the
> directory-only FS_CASEFOLD_FL flag, which shmem_set_inode_flags()
> then rejects with -ENOTDIR on non-directories: the inode records a
> phantom F flag, so the value FS_IOC_GETFLAGS reports can never be
> written back and attribute changes via chattr fail, dropping
> NOATIME/NODUMP from the same request.  The casefold mount option
> constraints that commit 5cd9aecbc72c ("tmpfs: Add flag
> FS_CASEFOLD_FL support for tmpfs dirs") landed with are also
> undocumented.
>
>   - P1: mask FS_CASEFOLD_FL for non-directory inodes the way
>     ext4_mask_flags()/f2fs_mask_flags() do.
>   - P2: document the CONFIG_UNICODE prerequisite, the
>     strict_encoding pairing and that both options are ignored on
>     remount.
>
> Testing: on a VM with CONFIG_UNICODE=y, before the patch a file
> created in a +F directory advertises the F flag via
> FS_IOC_GETFLAGS and chattr +i on it fails with ENOTDIR; after,
> the flag is not recorded and chattr works as usual.

The series looks good to me.  Feel free to add:

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>



-- 
Gabriel Krisman Bertazi


      parent reply	other threads:[~2026-11-23 15:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  5:16 [PATCH 0/2] tmpfs: fix casefold flag inheritance and document mount constraints Tao Cui
2026-11-23  5:16 ` [PATCH 1/2] shmem: do not inherit FS_CASEFOLD_FL onto non-directories Tao Cui
2026-11-23  5:16 ` [PATCH 2/2] Documentation: tmpfs: document casefold option constraints Tao Cui
2026-11-23 15:40 ` Gabriel Krisman Bertazi [this message]

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=878q2jeeu7.fsf@cartola \
    --to=krisman@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=andrealmeid@igalia.com \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=cui.tao@linux.dev \
    --cc=cuitao@kylinos.cn \
    --cc=david@kernel.org \
    --cc=hughd@google.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /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