Re: [PATCH] [Request for inclusion] Filesystem in Userspace

Nikita Danilov
2004-11-17T18:07:47Z

Jan Engelhardt writes:
> > > >mount -tfoo_ctrlfs -o host=/mnt/point /mnt/control-point
> > >
> > > Looks to me like a pollution of the mount table if you do this on a lot of
> > > filesystems.
> >
> >If you have a lot of file-systems your mount table is already polluted.
>
> That does not justify to pollute with *_ctlfs it
> to double the size it already is.

"mount-table" (fs/namespace.c:mount_hashtable) is consulted only when
path-resolution crosses dentry marked as mount-point (has non-zero
->d_mounted field), which is rare, and this means that number of
elements in mount_hashtable has little effect on the cost of path-name
resolution.

Unless, of course, by "polluted" you mean that output of "cat
/proc/self/mounts" becomes longer.

Nikita.