That dentry field will be unused most of the time and we lose space
for d_iname for *all* filesystems. On 64bit this results in max
inline name going from 32 down to 24 bytes. On my root fs 7% of names
are 24-31 in length. That's more than triple that of names which are
more than 32 in length.
Yeah, union mounts can be configured out, but that's not much
consolation for distros which want to enable this feature.
I already asked this, but I'll ask again, what about doing this with a
union filesystem? That solves this problem in one simple go, as well
as a host of others.
I'll do some experimenting because I feel it should be possible to do
all this in a union fs with most of the advantages of union mounts.
That doesn't mean it won't need any VFS support, but I think the
amount of VFS burden can be considerably reduced with that approach at
a small price (just dentry tree duplication).
Miklos
--