Re: [PATCH v6 4/9] fs: Add DCACHE_CASEFOLDED_NAME flag

Al Viro
2023-11-22T20:32:49Z

On Wed, Aug 16, 2023 at 01:07:58AM -0400, Gabriel Krisman Bertazi wrote:
> From: Gabriel Krisman Bertazi <krisman@collabora.com>
>
> This flag marks a negative or positive dentry as being created after a
> case-insensitive lookup operation. It is useful to differentiate
> dentries this way to detect whether the negative dentry can be trusted
> during a case-insensitive lookup.

What should happen to that flag when d_splice_alias() picks an existing
alias? AFAICS, you set it in ->lookup() for the dentry passed to ->lookup(),
but the alias picked by that sucker won't see anything of that sort, will
it?