Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_DCACHE_H
0003 #define __LINUX_DCACHE_H
0004 
0005 #include <linux/atomic.h>
0006 #include <linux/list.h>
0007 #include <linux/math.h>
0008 #include <linux/rculist.h>
0009 #include <linux/rculist_bl.h>
0010 #include <linux/spinlock.h>
0011 #include <linux/seqlock.h>
0012 #include <linux/cache.h>
0013 #include <linux/rcupdate.h>
0014 #include <linux/lockref.h>
0015 #include <linux/stringhash.h>
0016 #include <linux/wait.h>
0017 
0018 struct path;
0019 struct vfsmount;
0020 
0021 /*
0022  * linux/include/linux/dcache.h
0023  *
0024  * Dirent cache data structures
0025  *
0026  * (C) Copyright 1997 Thomas Schoebel-Theuer,
0027  * with heavy changes by Linus Torvalds
0028  */
0029 
0030 #define IS_ROOT(x) ((x) == (x)->d_parent)
0031 
0032 /* The hash is always the low bits of hash_len */
0033 #ifdef __LITTLE_ENDIAN
0034  #define HASH_LEN_DECLARE u32 hash; u32 len
0035  #define bytemask_from_count(cnt)   (~(~0ul << (cnt)*8))
0036 #else
0037  #define HASH_LEN_DECLARE u32 len; u32 hash
0038  #define bytemask_from_count(cnt)   (~(~0ul >> (cnt)*8))
0039 #endif
0040 
0041 /*
0042  * "quick string" -- eases parameter passing, but more importantly
0043  * saves "metadata" about the string (ie length and the hash).
0044  *
0045  * hash comes first so it snuggles against d_parent in the
0046  * dentry.
0047  */
0048 struct qstr {
0049     union {
0050         struct {
0051             HASH_LEN_DECLARE;
0052         };
0053         u64 hash_len;
0054     };
0055     const unsigned char *name;
0056 };
0057 
0058 #define QSTR_INIT(n,l) { { { .len = l } }, .name = n }
0059 
0060 extern const struct qstr empty_name;
0061 extern const struct qstr slash_name;
0062 extern const struct qstr dotdot_name;
0063 
0064 /*
0065  * Try to keep struct dentry aligned on 64 byte cachelines (this will
0066  * give reasonable cacheline footprint with larger lines without the
0067  * large memory footprint increase).
0068  */
0069 #ifdef CONFIG_64BIT
0070 # define DNAME_INLINE_LEN 32 /* 192 bytes */
0071 #else
0072 # ifdef CONFIG_SMP
0073 #  define DNAME_INLINE_LEN 36 /* 128 bytes */
0074 # else
0075 #  define DNAME_INLINE_LEN 40 /* 128 bytes */
0076 # endif
0077 #endif
0078 
0079 #define d_lock  d_lockref.lock
0080 
0081 struct dentry {
0082     /* RCU lookup touched fields */
0083     unsigned int d_flags;       /* protected by d_lock */
0084     seqcount_spinlock_t d_seq;  /* per dentry seqlock */
0085     struct hlist_bl_node d_hash;    /* lookup hash list */
0086     struct dentry *d_parent;    /* parent directory */
0087     struct qstr d_name;
0088     struct inode *d_inode;      /* Where the name belongs to - NULL is
0089                      * negative */
0090     unsigned char d_iname[DNAME_INLINE_LEN];    /* small names */
0091 
0092     /* Ref lookup also touches following */
0093     struct lockref d_lockref;   /* per-dentry lock and refcount */
0094     const struct dentry_operations *d_op;
0095     struct super_block *d_sb;   /* The root of the dentry tree */
0096     unsigned long d_time;       /* used by d_revalidate */
0097     void *d_fsdata;         /* fs-specific data */
0098 
0099     union {
0100         struct list_head d_lru;     /* LRU list */
0101         wait_queue_head_t *d_wait;  /* in-lookup ones only */
0102     };
0103     struct list_head d_child;   /* child of parent list */
0104     struct list_head d_subdirs; /* our children */
0105     /*
0106      * d_alias and d_rcu can share memory
0107      */
0108     union {
0109         struct hlist_node d_alias;  /* inode alias list */
0110         struct hlist_bl_node d_in_lookup_hash;  /* only for in-lookup ones */
0111         struct rcu_head d_rcu;
0112     } d_u;
0113 } __randomize_layout;
0114 
0115 /*
0116  * dentry->d_lock spinlock nesting subclasses:
0117  *
0118  * 0: normal
0119  * 1: nested
0120  */
0121 enum dentry_d_lock_class
0122 {
0123     DENTRY_D_LOCK_NORMAL, /* implicitly used by plain spin_lock() APIs. */
0124     DENTRY_D_LOCK_NESTED
0125 };
0126 
0127 struct dentry_operations {
0128     int (*d_revalidate)(struct dentry *, unsigned int);
0129     int (*d_weak_revalidate)(struct dentry *, unsigned int);
0130     int (*d_hash)(const struct dentry *, struct qstr *);
0131     int (*d_compare)(const struct dentry *,
0132             unsigned int, const char *, const struct qstr *);
0133     int (*d_delete)(const struct dentry *);
0134     int (*d_init)(struct dentry *);
0135     void (*d_release)(struct dentry *);
0136     void (*d_prune)(struct dentry *);
0137     void (*d_iput)(struct dentry *, struct inode *);
0138     char *(*d_dname)(struct dentry *, char *, int);
0139     struct vfsmount *(*d_automount)(struct path *);
0140     int (*d_manage)(const struct path *, bool);
0141     struct dentry *(*d_real)(struct dentry *, const struct inode *);
0142 } ____cacheline_aligned;
0143 
0144 /*
0145  * Locking rules for dentry_operations callbacks are to be found in
0146  * Documentation/filesystems/locking.rst. Keep it updated!
0147  *
0148  * FUrther descriptions are found in Documentation/filesystems/vfs.rst.
0149  * Keep it updated too!
0150  */
0151 
0152 /* d_flags entries */
0153 #define DCACHE_OP_HASH          0x00000001
0154 #define DCACHE_OP_COMPARE       0x00000002
0155 #define DCACHE_OP_REVALIDATE        0x00000004
0156 #define DCACHE_OP_DELETE        0x00000008
0157 #define DCACHE_OP_PRUNE         0x00000010
0158 
0159 #define DCACHE_DISCONNECTED     0x00000020
0160      /* This dentry is possibly not currently connected to the dcache tree, in
0161       * which case its parent will either be itself, or will have this flag as
0162       * well.  nfsd will not use a dentry with this bit set, but will first
0163       * endeavour to clear the bit either by discovering that it is connected,
0164       * or by performing lookup operations.   Any filesystem which supports
0165       * nfsd_operations MUST have a lookup function which, if it finds a
0166       * directory inode with a DCACHE_DISCONNECTED dentry, will d_move that
0167       * dentry into place and return that dentry rather than the passed one,
0168       * typically using d_splice_alias. */
0169 
0170 #define DCACHE_REFERENCED       0x00000040 /* Recently used, don't discard. */
0171 
0172 #define DCACHE_DONTCACHE        0x00000080 /* Purge from memory on final dput() */
0173 
0174 #define DCACHE_CANT_MOUNT       0x00000100
0175 #define DCACHE_GENOCIDE         0x00000200
0176 #define DCACHE_SHRINK_LIST      0x00000400
0177 
0178 #define DCACHE_OP_WEAK_REVALIDATE   0x00000800
0179 
0180 #define DCACHE_NFSFS_RENAMED        0x00001000
0181      /* this dentry has been "silly renamed" and has to be deleted on the last
0182       * dput() */
0183 #define DCACHE_COOKIE           0x00002000 /* For use by dcookie subsystem */
0184 #define DCACHE_FSNOTIFY_PARENT_WATCHED  0x00004000
0185      /* Parent inode is watched by some fsnotify listener */
0186 
0187 #define DCACHE_DENTRY_KILLED        0x00008000
0188 
0189 #define DCACHE_MOUNTED          0x00010000 /* is a mountpoint */
0190 #define DCACHE_NEED_AUTOMOUNT       0x00020000 /* handle automount on this dir */
0191 #define DCACHE_MANAGE_TRANSIT       0x00040000 /* manage transit from this dirent */
0192 #define DCACHE_MANAGED_DENTRY \
0193     (DCACHE_MOUNTED|DCACHE_NEED_AUTOMOUNT|DCACHE_MANAGE_TRANSIT)
0194 
0195 #define DCACHE_LRU_LIST         0x00080000
0196 
0197 #define DCACHE_ENTRY_TYPE       0x00700000
0198 #define DCACHE_MISS_TYPE        0x00000000 /* Negative dentry (maybe fallthru to nowhere) */
0199 #define DCACHE_WHITEOUT_TYPE        0x00100000 /* Whiteout dentry (stop pathwalk) */
0200 #define DCACHE_DIRECTORY_TYPE       0x00200000 /* Normal directory */
0201 #define DCACHE_AUTODIR_TYPE     0x00300000 /* Lookupless directory (presumed automount) */
0202 #define DCACHE_REGULAR_TYPE     0x00400000 /* Regular file type (or fallthru to such) */
0203 #define DCACHE_SPECIAL_TYPE     0x00500000 /* Other file type (or fallthru to such) */
0204 #define DCACHE_SYMLINK_TYPE     0x00600000 /* Symlink (or fallthru to such) */
0205 
0206 #define DCACHE_MAY_FREE         0x00800000
0207 #define DCACHE_FALLTHRU         0x01000000 /* Fall through to lower layer */
0208 #define DCACHE_NOKEY_NAME       0x02000000 /* Encrypted name encoded without key */
0209 #define DCACHE_OP_REAL          0x04000000
0210 
0211 #define DCACHE_PAR_LOOKUP       0x10000000 /* being looked up (with parent locked shared) */
0212 #define DCACHE_DENTRY_CURSOR        0x20000000
0213 #define DCACHE_NORCU            0x40000000 /* No RCU delay for freeing */
0214 
0215 extern seqlock_t rename_lock;
0216 
0217 /*
0218  * These are the low-level FS interfaces to the dcache..
0219  */
0220 extern void d_instantiate(struct dentry *, struct inode *);
0221 extern void d_instantiate_new(struct dentry *, struct inode *);
0222 extern struct dentry * d_instantiate_unique(struct dentry *, struct inode *);
0223 extern struct dentry * d_instantiate_anon(struct dentry *, struct inode *);
0224 extern void __d_drop(struct dentry *dentry);
0225 extern void d_drop(struct dentry *dentry);
0226 extern void d_delete(struct dentry *);
0227 extern void d_set_d_op(struct dentry *dentry, const struct dentry_operations *op);
0228 
0229 /* allocate/de-allocate */
0230 extern struct dentry * d_alloc(struct dentry *, const struct qstr *);
0231 extern struct dentry * d_alloc_anon(struct super_block *);
0232 extern struct dentry * d_alloc_parallel(struct dentry *, const struct qstr *,
0233                     wait_queue_head_t *);
0234 extern struct dentry * d_splice_alias(struct inode *, struct dentry *);
0235 extern struct dentry * d_add_ci(struct dentry *, struct inode *, struct qstr *);
0236 extern bool d_same_name(const struct dentry *dentry, const struct dentry *parent,
0237             const struct qstr *name);
0238 extern struct dentry * d_exact_alias(struct dentry *, struct inode *);
0239 extern struct dentry *d_find_any_alias(struct inode *inode);
0240 extern struct dentry * d_obtain_alias(struct inode *);
0241 extern struct dentry * d_obtain_root(struct inode *);
0242 extern void shrink_dcache_sb(struct super_block *);
0243 extern void shrink_dcache_parent(struct dentry *);
0244 extern void shrink_dcache_for_umount(struct super_block *);
0245 extern void d_invalidate(struct dentry *);
0246 
0247 /* only used at mount-time */
0248 extern struct dentry * d_make_root(struct inode *);
0249 
0250 /* <clickety>-<click> the ramfs-type tree */
0251 extern void d_genocide(struct dentry *);
0252 
0253 extern void d_tmpfile(struct dentry *, struct inode *);
0254 
0255 extern struct dentry *d_find_alias(struct inode *);
0256 extern void d_prune_aliases(struct inode *);
0257 
0258 extern struct dentry *d_find_alias_rcu(struct inode *);
0259 
0260 /* test whether we have any submounts in a subdir tree */
0261 extern int path_has_submounts(const struct path *);
0262 
0263 /*
0264  * This adds the entry to the hash queues.
0265  */
0266 extern void d_rehash(struct dentry *);
0267  
0268 extern void d_add(struct dentry *, struct inode *);
0269 
0270 /* used for rename() and baskets */
0271 extern void d_move(struct dentry *, struct dentry *);
0272 extern void d_exchange(struct dentry *, struct dentry *);
0273 extern struct dentry *d_ancestor(struct dentry *, struct dentry *);
0274 
0275 /* appendix may either be NULL or be used for transname suffixes */
0276 extern struct dentry *d_lookup(const struct dentry *, const struct qstr *);
0277 extern struct dentry *d_hash_and_lookup(struct dentry *, struct qstr *);
0278 extern struct dentry *__d_lookup(const struct dentry *, const struct qstr *);
0279 extern struct dentry *__d_lookup_rcu(const struct dentry *parent,
0280                 const struct qstr *name, unsigned *seq);
0281 
0282 static inline unsigned d_count(const struct dentry *dentry)
0283 {
0284     return dentry->d_lockref.count;
0285 }
0286 
0287 /*
0288  * helper function for dentry_operations.d_dname() members
0289  */
0290 extern __printf(4, 5)
0291 char *dynamic_dname(struct dentry *, char *, int, const char *, ...);
0292 
0293 extern char *__d_path(const struct path *, const struct path *, char *, int);
0294 extern char *d_absolute_path(const struct path *, char *, int);
0295 extern char *d_path(const struct path *, char *, int);
0296 extern char *dentry_path_raw(const struct dentry *, char *, int);
0297 extern char *dentry_path(const struct dentry *, char *, int);
0298 
0299 /* Allocation counts.. */
0300 
0301 /**
0302  *  dget, dget_dlock -  get a reference to a dentry
0303  *  @dentry: dentry to get a reference to
0304  *
0305  *  Given a dentry or %NULL pointer increment the reference count
0306  *  if appropriate and return the dentry. A dentry will not be 
0307  *  destroyed when it has references.
0308  */
0309 static inline struct dentry *dget_dlock(struct dentry *dentry)
0310 {
0311     if (dentry)
0312         dentry->d_lockref.count++;
0313     return dentry;
0314 }
0315 
0316 static inline struct dentry *dget(struct dentry *dentry)
0317 {
0318     if (dentry)
0319         lockref_get(&dentry->d_lockref);
0320     return dentry;
0321 }
0322 
0323 extern struct dentry *dget_parent(struct dentry *dentry);
0324 
0325 /**
0326  *  d_unhashed -    is dentry hashed
0327  *  @dentry: entry to check
0328  *
0329  *  Returns true if the dentry passed is not currently hashed.
0330  */
0331  
0332 static inline int d_unhashed(const struct dentry *dentry)
0333 {
0334     return hlist_bl_unhashed(&dentry->d_hash);
0335 }
0336 
0337 static inline int d_unlinked(const struct dentry *dentry)
0338 {
0339     return d_unhashed(dentry) && !IS_ROOT(dentry);
0340 }
0341 
0342 static inline int cant_mount(const struct dentry *dentry)
0343 {
0344     return (dentry->d_flags & DCACHE_CANT_MOUNT);
0345 }
0346 
0347 static inline void dont_mount(struct dentry *dentry)
0348 {
0349     spin_lock(&dentry->d_lock);
0350     dentry->d_flags |= DCACHE_CANT_MOUNT;
0351     spin_unlock(&dentry->d_lock);
0352 }
0353 
0354 extern void __d_lookup_unhash_wake(struct dentry *dentry);
0355 
0356 static inline int d_in_lookup(const struct dentry *dentry)
0357 {
0358     return dentry->d_flags & DCACHE_PAR_LOOKUP;
0359 }
0360 
0361 static inline void d_lookup_done(struct dentry *dentry)
0362 {
0363     if (unlikely(d_in_lookup(dentry)))
0364         __d_lookup_unhash_wake(dentry);
0365 }
0366 
0367 extern void dput(struct dentry *);
0368 
0369 static inline bool d_managed(const struct dentry *dentry)
0370 {
0371     return dentry->d_flags & DCACHE_MANAGED_DENTRY;
0372 }
0373 
0374 static inline bool d_mountpoint(const struct dentry *dentry)
0375 {
0376     return dentry->d_flags & DCACHE_MOUNTED;
0377 }
0378 
0379 /*
0380  * Directory cache entry type accessor functions.
0381  */
0382 static inline unsigned __d_entry_type(const struct dentry *dentry)
0383 {
0384     return dentry->d_flags & DCACHE_ENTRY_TYPE;
0385 }
0386 
0387 static inline bool d_is_miss(const struct dentry *dentry)
0388 {
0389     return __d_entry_type(dentry) == DCACHE_MISS_TYPE;
0390 }
0391 
0392 static inline bool d_is_whiteout(const struct dentry *dentry)
0393 {
0394     return __d_entry_type(dentry) == DCACHE_WHITEOUT_TYPE;
0395 }
0396 
0397 static inline bool d_can_lookup(const struct dentry *dentry)
0398 {
0399     return __d_entry_type(dentry) == DCACHE_DIRECTORY_TYPE;
0400 }
0401 
0402 static inline bool d_is_autodir(const struct dentry *dentry)
0403 {
0404     return __d_entry_type(dentry) == DCACHE_AUTODIR_TYPE;
0405 }
0406 
0407 static inline bool d_is_dir(const struct dentry *dentry)
0408 {
0409     return d_can_lookup(dentry) || d_is_autodir(dentry);
0410 }
0411 
0412 static inline bool d_is_symlink(const struct dentry *dentry)
0413 {
0414     return __d_entry_type(dentry) == DCACHE_SYMLINK_TYPE;
0415 }
0416 
0417 static inline bool d_is_reg(const struct dentry *dentry)
0418 {
0419     return __d_entry_type(dentry) == DCACHE_REGULAR_TYPE;
0420 }
0421 
0422 static inline bool d_is_special(const struct dentry *dentry)
0423 {
0424     return __d_entry_type(dentry) == DCACHE_SPECIAL_TYPE;
0425 }
0426 
0427 static inline bool d_is_file(const struct dentry *dentry)
0428 {
0429     return d_is_reg(dentry) || d_is_special(dentry);
0430 }
0431 
0432 static inline bool d_is_negative(const struct dentry *dentry)
0433 {
0434     // TODO: check d_is_whiteout(dentry) also.
0435     return d_is_miss(dentry);
0436 }
0437 
0438 static inline bool d_flags_negative(unsigned flags)
0439 {
0440     return (flags & DCACHE_ENTRY_TYPE) == DCACHE_MISS_TYPE;
0441 }
0442 
0443 static inline bool d_is_positive(const struct dentry *dentry)
0444 {
0445     return !d_is_negative(dentry);
0446 }
0447 
0448 /**
0449  * d_really_is_negative - Determine if a dentry is really negative (ignoring fallthroughs)
0450  * @dentry: The dentry in question
0451  *
0452  * Returns true if the dentry represents either an absent name or a name that
0453  * doesn't map to an inode (ie. ->d_inode is NULL).  The dentry could represent
0454  * a true miss, a whiteout that isn't represented by a 0,0 chardev or a
0455  * fallthrough marker in an opaque directory.
0456  *
0457  * Note!  (1) This should be used *only* by a filesystem to examine its own
0458  * dentries.  It should not be used to look at some other filesystem's
0459  * dentries.  (2) It should also be used in combination with d_inode() to get
0460  * the inode.  (3) The dentry may have something attached to ->d_lower and the
0461  * type field of the flags may be set to something other than miss or whiteout.
0462  */
0463 static inline bool d_really_is_negative(const struct dentry *dentry)
0464 {
0465     return dentry->d_inode == NULL;
0466 }
0467 
0468 /**
0469  * d_really_is_positive - Determine if a dentry is really positive (ignoring fallthroughs)
0470  * @dentry: The dentry in question
0471  *
0472  * Returns true if the dentry represents a name that maps to an inode
0473  * (ie. ->d_inode is not NULL).  The dentry might still represent a whiteout if
0474  * that is represented on medium as a 0,0 chardev.
0475  *
0476  * Note!  (1) This should be used *only* by a filesystem to examine its own
0477  * dentries.  It should not be used to look at some other filesystem's
0478  * dentries.  (2) It should also be used in combination with d_inode() to get
0479  * the inode.
0480  */
0481 static inline bool d_really_is_positive(const struct dentry *dentry)
0482 {
0483     return dentry->d_inode != NULL;
0484 }
0485 
0486 static inline int simple_positive(const struct dentry *dentry)
0487 {
0488     return d_really_is_positive(dentry) && !d_unhashed(dentry);
0489 }
0490 
0491 extern void d_set_fallthru(struct dentry *dentry);
0492 
0493 static inline bool d_is_fallthru(const struct dentry *dentry)
0494 {
0495     return dentry->d_flags & DCACHE_FALLTHRU;
0496 }
0497 
0498 
0499 extern int sysctl_vfs_cache_pressure;
0500 
0501 static inline unsigned long vfs_pressure_ratio(unsigned long val)
0502 {
0503     return mult_frac(val, sysctl_vfs_cache_pressure, 100);
0504 }
0505 
0506 /**
0507  * d_inode - Get the actual inode of this dentry
0508  * @dentry: The dentry to query
0509  *
0510  * This is the helper normal filesystems should use to get at their own inodes
0511  * in their own dentries and ignore the layering superimposed upon them.
0512  */
0513 static inline struct inode *d_inode(const struct dentry *dentry)
0514 {
0515     return dentry->d_inode;
0516 }
0517 
0518 /**
0519  * d_inode_rcu - Get the actual inode of this dentry with READ_ONCE()
0520  * @dentry: The dentry to query
0521  *
0522  * This is the helper normal filesystems should use to get at their own inodes
0523  * in their own dentries and ignore the layering superimposed upon them.
0524  */
0525 static inline struct inode *d_inode_rcu(const struct dentry *dentry)
0526 {
0527     return READ_ONCE(dentry->d_inode);
0528 }
0529 
0530 /**
0531  * d_backing_inode - Get upper or lower inode we should be using
0532  * @upper: The upper layer
0533  *
0534  * This is the helper that should be used to get at the inode that will be used
0535  * if this dentry were to be opened as a file.  The inode may be on the upper
0536  * dentry or it may be on a lower dentry pinned by the upper.
0537  *
0538  * Normal filesystems should not use this to access their own inodes.
0539  */
0540 static inline struct inode *d_backing_inode(const struct dentry *upper)
0541 {
0542     struct inode *inode = upper->d_inode;
0543 
0544     return inode;
0545 }
0546 
0547 /**
0548  * d_backing_dentry - Get upper or lower dentry we should be using
0549  * @upper: The upper layer
0550  *
0551  * This is the helper that should be used to get the dentry of the inode that
0552  * will be used if this dentry were opened as a file.  It may be the upper
0553  * dentry or it may be a lower dentry pinned by the upper.
0554  *
0555  * Normal filesystems should not use this to access their own dentries.
0556  */
0557 static inline struct dentry *d_backing_dentry(struct dentry *upper)
0558 {
0559     return upper;
0560 }
0561 
0562 /**
0563  * d_real - Return the real dentry
0564  * @dentry: the dentry to query
0565  * @inode: inode to select the dentry from multiple layers (can be NULL)
0566  *
0567  * If dentry is on a union/overlay, then return the underlying, real dentry.
0568  * Otherwise return the dentry itself.
0569  *
0570  * See also: Documentation/filesystems/vfs.rst
0571  */
0572 static inline struct dentry *d_real(struct dentry *dentry,
0573                     const struct inode *inode)
0574 {
0575     if (unlikely(dentry->d_flags & DCACHE_OP_REAL))
0576         return dentry->d_op->d_real(dentry, inode);
0577     else
0578         return dentry;
0579 }
0580 
0581 /**
0582  * d_real_inode - Return the real inode
0583  * @dentry: The dentry to query
0584  *
0585  * If dentry is on a union/overlay, then return the underlying, real inode.
0586  * Otherwise return d_inode().
0587  */
0588 static inline struct inode *d_real_inode(const struct dentry *dentry)
0589 {
0590     /* This usage of d_real() results in const dentry */
0591     return d_backing_inode(d_real((struct dentry *) dentry, NULL));
0592 }
0593 
0594 struct name_snapshot {
0595     struct qstr name;
0596     unsigned char inline_name[DNAME_INLINE_LEN];
0597 };
0598 void take_dentry_name_snapshot(struct name_snapshot *, struct dentry *);
0599 void release_dentry_name_snapshot(struct name_snapshot *);
0600 
0601 #endif  /* __LINUX_DCACHE_H */