diff options
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r-- | include/linux/dcache.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index df334cbacc6d..d2d50249b7b2 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h | |||
@@ -160,6 +160,7 @@ struct dentry_operations { | |||
160 | char *(*d_dname)(struct dentry *, char *, int); | 160 | char *(*d_dname)(struct dentry *, char *, int); |
161 | struct vfsmount *(*d_automount)(struct path *); | 161 | struct vfsmount *(*d_automount)(struct path *); |
162 | int (*d_manage)(struct dentry *, bool); | 162 | int (*d_manage)(struct dentry *, bool); |
163 | struct inode *(*d_select_inode)(struct dentry *, unsigned); | ||
163 | } ____cacheline_aligned; | 164 | } ____cacheline_aligned; |
164 | 165 | ||
165 | /* | 166 | /* |
@@ -225,6 +226,7 @@ struct dentry_operations { | |||
225 | 226 | ||
226 | #define DCACHE_MAY_FREE 0x00800000 | 227 | #define DCACHE_MAY_FREE 0x00800000 |
227 | #define DCACHE_FALLTHRU 0x01000000 /* Fall through to lower layer */ | 228 | #define DCACHE_FALLTHRU 0x01000000 /* Fall through to lower layer */ |
229 | #define DCACHE_OP_SELECT_INODE 0x02000000 /* Unioned entry: dcache op selects inode */ | ||
228 | 230 | ||
229 | extern seqlock_t rename_lock; | 231 | extern seqlock_t rename_lock; |
230 | 232 | ||
@@ -505,6 +507,11 @@ static inline bool d_really_is_positive(const struct dentry *dentry) | |||
505 | return dentry->d_inode != NULL; | 507 | return dentry->d_inode != NULL; |
506 | } | 508 | } |
507 | 509 | ||
510 | static inline int simple_positive(struct dentry *dentry) | ||
511 | { | ||
512 | return d_really_is_positive(dentry) && !d_unhashed(dentry); | ||
513 | } | ||
514 | |||
508 | extern void d_set_fallthru(struct dentry *dentry); | 515 | extern void d_set_fallthru(struct dentry *dentry); |
509 | 516 | ||
510 | static inline bool d_is_fallthru(const struct dentry *dentry) | 517 | static inline bool d_is_fallthru(const struct dentry *dentry) |