Re: [RFD 1/4] Pass no useless nameidata to the create, lookup, and permission IOPs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <jjohansen@...>
Cc: <linux-kernel@...>, <linux-security-module@...>, <linux-fsdevel@...>, Andreas Gruenbacher <agruen@...>
Date: Tuesday, June 26, 2007 - 8:11 pm

In message <20070626231541.697783295@suse.de>, jjohansen@suse.de writes:

I agree w/ Trond that a better name is needed other than 'nameidata2',
esp. for something that's a sub-structure (perhaps start it with a '__'?)

These changes would probably help stackable file systems (e.g., eCryptfs and
esp. Unionfs) a lot, b/c stackable f/s often call the lower f/s to lookup
files and such; and in most cases, we just need to pass the intent down, not
the full VFS-level state info.


Perhaps it is also time to put the dentry + mnt into a single struct path?
It's a small change, but it emphasizes that the two items here, dentry+mnt,
really define a single path to be passed around:

#define __NAMEIDATA			\
	struct path path;		\
	unsigned int flags;		\
	...

Of course, you'll have to change instances of nd->dentry to nd->path.dentry
and so on.

Erez.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFD 1/4] Pass no useless nameidata to the create, looku..., Christoph Hellwig, (Sat Jun 30, 5:13 am)
Re: [RFD 1/4] Pass no useless nameidata to the create, looku..., Andreas Gruenbacher, (Sat Jun 30, 12:13 pm)
Re: [RFD 1/4] Pass no useless nameidata to the create, looku..., Erez Zadok, (Tue Jun 26, 8:11 pm)
Re: [RFD 1/4] Pass no useless nameidata to the create, looku..., Christoph Hellwig, (Sat Jun 30, 5:14 am)