diff options
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r-- | include/linux/dcache.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 5a1dc90bf..82390ea64 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -49,9 +49,13 @@ struct dentry { struct list_head d_alias; /* inode alias list */ struct list_head d_lru; /* d_count = 0 LRU list */ struct qstr d_name; - struct dentry * (*d_revalidate)(struct dentry *); + unsigned long d_time; /* used by d_revalidate */ + int (*d_revalidate)(struct dentry *); }; +/* d_flags entries */ +#define DCACHE_AUTOFS_PENDING 0x0001 /* autofs: "under construction" */ + /* * d_drop() unhashes the entry from the parent * dentry hashes, so that it won't be found through @@ -102,8 +106,8 @@ extern struct dentry * d_lookup(struct dentry * dir, struct qstr * name); extern int d_validate(struct dentry *dentry, struct dentry *dparent, unsigned int hash, unsigned int len); -/* write full pathname into buffer and return length */ -extern int d_path(struct dentry * entry, struct dentry * chroot, char * buf); +/* write full pathname into buffer and return start of pathname */ +extern char * d_path(struct dentry * entry, char * buf, int buflen); /* Allocation counts.. */ static inline struct dentry * dget(struct dentry *dentry) |