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

From: Nikita Danilov
Date: Wed Nov 17 2004 - 13:47:14 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/