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.
-