projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git]
/
include
/
linux
/
dcache.h
diff --git
a/include/linux/dcache.h
b/include/linux/dcache.h
index 15156364d196a64103f27b5700756f51882a5eab..30b93b2a01a42891c78ae54f6803f0908c544b7f 100644
(file)
--- a/
include/linux/dcache.h
+++ b/
include/linux/dcache.h
@@
-180,10
+180,12
@@
d_iput: no no no yes
#define DCACHE_REFERENCED 0x0008 /* Recently used, don't discard. */
#define DCACHE_UNHASHED 0x0010
#define DCACHE_REFERENCED 0x0008 /* Recently used, don't discard. */
#define DCACHE_UNHASHED 0x0010
-#define DCACHE_INOTIFY_PARENT_WATCHED 0x0020 /* Parent inode is watched */
+#define DCACHE_INOTIFY_PARENT_WATCHED 0x0020 /* Parent inode is watched
by inotify
*/
#define DCACHE_COOKIE 0x0040 /* For use by dcookie subsystem */
#define DCACHE_COOKIE 0x0040 /* For use by dcookie subsystem */
+#define DCACHE_FSNOTIFY_PARENT_WATCHED 0x0080 /* Parent inode is watched by some fsnotify listener */
+
extern spinlock_t dcache_lock;
extern seqlock_t rename_lock;
extern spinlock_t dcache_lock;
extern seqlock_t rename_lock;
@@
-351,6
+353,11
@@
static inline int d_unhashed(struct dentry *dentry)
return (dentry->d_flags & DCACHE_UNHASHED);
}
return (dentry->d_flags & DCACHE_UNHASHED);
}
+static inline int d_unlinked(struct dentry *dentry)
+{
+ return d_unhashed(dentry) && !IS_ROOT(dentry);
+}
+
static inline struct dentry *dget_parent(struct dentry *dentry)
{
struct dentry *ret;
static inline struct dentry *dget_parent(struct dentry *dentry)
{
struct dentry *ret;
@@
-368,7
+375,7
@@
static inline int d_mountpoint(struct dentry *dentry)
return dentry->d_mounted;
}
return dentry->d_mounted;
}
-extern struct vfsmount *lookup_mnt(struct
vfsmount *, struct dentry
*);
+extern struct vfsmount *lookup_mnt(struct
path
*);
extern struct dentry *lookup_create(struct nameidata *nd, int is_dir);
extern int sysctl_vfs_cache_pressure;
extern struct dentry *lookup_create(struct nameidata *nd, int is_dir);
extern int sysctl_vfs_cache_pressure;