dcache: d_compare prototype

Peter J. Braam (braam@cs.cmu.edu)
Wed, 17 Dec 1997 10:19:48 -0500 (EST)


Hi Bill,

Coda is starting to use the dcache. During a lookup I need to know if I
have credentials for an inode already, I need to use the d_compare
operation.

The current prototype is:

int coda_d_compare(struct dentry *parent,
struct qstr *de_name, struct qstr *name)

Can we make it:

int coda_d_compare(struct dentry *dentry, struct qstr *name)

We can still get at the parent (dentry->d_parent) and at the name
(dentry->d_name) and I won't have to do ugly things like
dentry = list_entry( de_name, struct dentry *, d_name )

Peter