aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r--include/linux/dcache.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index 66c6e17e61e5..ef4b70f64f33 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -145,8 +145,7 @@ struct dentry_operations {
145 char *(*d_dname)(struct dentry *, char *, int); 145 char *(*d_dname)(struct dentry *, char *, int);
146 struct vfsmount *(*d_automount)(struct path *); 146 struct vfsmount *(*d_automount)(struct path *);
147 int (*d_manage)(const struct path *, bool); 147 int (*d_manage)(const struct path *, bool);
148 struct dentry *(*d_real)(struct dentry *, const struct inode *, 148 struct dentry *(*d_real)(struct dentry *, const struct inode *);
149 unsigned int, unsigned int);
150} ____cacheline_aligned; 149} ____cacheline_aligned;
151 150
152/* 151/*
@@ -227,7 +226,6 @@ extern void d_instantiate(struct dentry *, struct inode *);
227extern void d_instantiate_new(struct dentry *, struct inode *); 226extern void d_instantiate_new(struct dentry *, struct inode *);
228extern struct dentry * d_instantiate_unique(struct dentry *, struct inode *); 227extern struct dentry * d_instantiate_unique(struct dentry *, struct inode *);
229extern struct dentry * d_instantiate_anon(struct dentry *, struct inode *); 228extern struct dentry * d_instantiate_anon(struct dentry *, struct inode *);
230extern int d_instantiate_no_diralias(struct dentry *, struct inode *);
231extern void __d_drop(struct dentry *dentry); 229extern void __d_drop(struct dentry *dentry);
232extern void d_drop(struct dentry *dentry); 230extern void d_drop(struct dentry *dentry);
233extern void d_delete(struct dentry *); 231extern void d_delete(struct dentry *);
@@ -271,8 +269,6 @@ extern void d_rehash(struct dentry *);
271 269
272extern void d_add(struct dentry *, struct inode *); 270extern void d_add(struct dentry *, struct inode *);
273 271
274extern void dentry_update_name_case(struct dentry *, const struct qstr *);
275
276/* used for rename() and baskets */ 272/* used for rename() and baskets */
277extern void d_move(struct dentry *, struct dentry *); 273extern void d_move(struct dentry *, struct dentry *);
278extern void d_exchange(struct dentry *, struct dentry *); 274extern void d_exchange(struct dentry *, struct dentry *);
@@ -564,15 +560,10 @@ static inline struct dentry *d_backing_dentry(struct dentry *upper)
564 return upper; 560 return upper;
565} 561}
566 562
567/* d_real() flags */
568#define D_REAL_UPPER 0x2 /* return upper dentry or NULL if non-upper */
569
570/** 563/**
571 * d_real - Return the real dentry 564 * d_real - Return the real dentry
572 * @dentry: the dentry to query 565 * @dentry: the dentry to query
573 * @inode: inode to select the dentry from multiple layers (can be NULL) 566 * @inode: inode to select the dentry from multiple layers (can be NULL)
574 * @open_flags: open flags to control copy-up behavior
575 * @flags: flags to control what is returned by this function
576 * 567 *
577 * If dentry is on a union/overlay, then return the underlying, real dentry. 568 * If dentry is on a union/overlay, then return the underlying, real dentry.
578 * Otherwise return the dentry itself. 569 * Otherwise return the dentry itself.
@@ -580,11 +571,10 @@ static inline struct dentry *d_backing_dentry(struct dentry *upper)
580 * See also: Documentation/filesystems/vfs.txt 571 * See also: Documentation/filesystems/vfs.txt
581 */ 572 */
582static inline struct dentry *d_real(struct dentry *dentry, 573static inline struct dentry *d_real(struct dentry *dentry,
583 const struct inode *inode, 574 const struct inode *inode)
584 unsigned int open_flags, unsigned int flags)
585{ 575{
586 if (unlikely(dentry->d_flags & DCACHE_OP_REAL)) 576 if (unlikely(dentry->d_flags & DCACHE_OP_REAL))
587 return dentry->d_op->d_real(dentry, inode, open_flags, flags); 577 return dentry->d_op->d_real(dentry, inode);
588 else 578 else
589 return dentry; 579 return dentry;
590} 580}
@@ -599,7 +589,7 @@ static inline struct dentry *d_real(struct dentry *dentry,
599static inline struct inode *d_real_inode(const struct dentry *dentry) 589static inline struct inode *d_real_inode(const struct dentry *dentry)
600{ 590{
601 /* This usage of d_real() results in const dentry */ 591 /* This usage of d_real() results in const dentry */
602 return d_backing_inode(d_real((struct dentry *) dentry, NULL, 0, 0)); 592 return d_backing_inode(d_real((struct dentry *) dentry, NULL));
603} 593}
604 594
605struct name_snapshot { 595struct name_snapshot {