Re: [RFC PATCH] file as directory

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miklos Szeredi <miklos@...>
Cc: <linux-kernel@...>, <linux-fsdevel@...>, <akpm@...>, <torvalds@...>
Date: Wednesday, May 23, 2007 - 8:16 am

On Wed, May 23, 2007 at 12:39:25PM +0100, Al Viro wrote:

Ah... After rereading the thread you've mentioned in the very beginning,
I think I understand what you are driving at.  However, in that case
	* I really don't see why bother with returning vfsmount at all.
dentry alone is enough to create a new vfsmount, all in fs/namei.c.
	* the lifetime rules look fscking scary.  You call that ->enter()
on nearly every damn lookup.  OK, so you'll recreate equivalent vfsmount,
but...  That's a lot of allocations/freeing.  Can we do some caching and
deal with it on memory pressure?
	* invalidation on unlink is still an open problem.
	* locking in final mntput() doesn't look nice; we probably need
a new refcounting scheme for vfsmounts to make that work.  I have a variant
that might work here (and make life much easier for expiry logics in
automount/shared trees, which is what it had been initially proposed for),
but it still doesn't kill the need to deal with invalidation.  And yes,
NFS still needs it (and so do all network filesystems, really).  The question
of caching is related to that.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH] file as directory, Miklos Szeredi, (Tue May 22, 2:48 pm)
Re: [RFC PATCH] file as directory, Jaroslav Sykora, (Wed May 23, 9:20 am)
Re: [RFC PATCH] file as directory, Jan Engelhardt, (Wed May 23, 8:01 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 5:51 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 6:09 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 6:24 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 6:24 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 6:40 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 7:39 am)
Re: [RFC PATCH] file as directory, Ph. Marek, (Wed May 23, 9:23 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 9:54 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 8:16 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 9:01 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 9:51 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 10:32 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 11:06 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 11:25 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 11:37 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 11:55 am)
Re: [RFC PATCH] file as directory, Shaya Potter, (Tue May 22, 7:26 pm)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 2:39 am)
Re: [RFC PATCH] file as directory, Al Viro, (Tue May 22, 6:10 pm)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 2:36 am)
Re: [RFC PATCH] file as directory, Pavel Machek, (Thu May 24, 8:07 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Mon May 28, 10:43 am)
Re: [RFC PATCH] file as directory, Jan Blunck, (Wed May 23, 5:21 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 5:35 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 3:03 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 3:19 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 3:36 am)
Re: [RFC PATCH] file as directory, Trond Myklebust, (Wed May 23, 8:34 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 8:40 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 4:05 am)
Re: [RFC PATCH] file as directory, Jan Blunck, (Wed May 23, 5:16 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 5:28 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 4:29 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 5:03 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 5:58 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 6:14 am)