Re: [PATCH 2/2] afs: Make /afs/@cell and /afs/.@cell symlinks

David Howells
2025-01-07T17:56:56Z

Al Viro <viro@zeniv.linux.org.uk> wrote:

> Just allocate those child dentries and call your afs_lookup_atcell() for them.
> No need to keep that mess in ->lookup() - you are keeping those suckers cached
> now, so...

Actually, I wonder if creating the inodes and dentries for cells and the @cell
symlinks at mount of the dynamic root or when the cells are created is
actually the best way.

It might be better to list all the cells and symlinks in readdir and only
create them on demand in ->lookup(). The cells are kept in their own list on
the network namespace anyway, even if the dynamic root isn't mounted.

David