aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dcache.h6
-rw-r--r--include/linux/fsnotify.h31
2 files changed, 6 insertions, 31 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index d2e38dc6172c..025727bf6797 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -591,5 +591,11 @@ static inline struct inode *d_real_inode(const struct dentry *dentry)
591 return d_backing_inode(d_real((struct dentry *) dentry, NULL, 0)); 591 return d_backing_inode(d_real((struct dentry *) dentry, NULL, 0));
592} 592}
593 593
594struct name_snapshot {
595 const char *name;
596 char inline_name[DNAME_INLINE_LEN];
597};
598void take_dentry_name_snapshot(struct name_snapshot *, struct dentry *);
599void release_dentry_name_snapshot(struct name_snapshot *);
594 600
595#endif /* __LINUX_DCACHE_H */ 601#endif /* __LINUX_DCACHE_H */
diff --git a/include/linux/fsnotify.h b/include/linux/fsnotify.h
index b43d3f5bd9ea..b78aa7ac77ce 100644
--- a/include/linux/fsnotify.h
+++ b/include/linux/fsnotify.h
@@ -293,35 +293,4 @@ static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid)
293 } 293 }
294} 294}
295 295
296#if defined(CONFIG_FSNOTIFY) /* notify helpers */
297
298/*
299 * fsnotify_oldname_init - save off the old filename before we change it
300 */
301static inline const unsigned char *fsnotify_oldname_init(const unsigned char *name)
302{
303 return kstrdup(name, GFP_KERNEL);
304}
305
306/*
307 * fsnotify_oldname_free - free the name we got from fsnotify_oldname_init
308 */
309static inline void fsnotify_oldname_free(const unsigned char *old_name)
310{
311 kfree(old_name);
312}
313
314#else /* CONFIG_FSNOTIFY */
315
316static inline const char *fsnotify_oldname_init(const unsigned char *name)
317{
318 return NULL;
319}
320
321static inline void fsnotify_oldname_free(const unsigned char *old_name)
322{
323}
324
325#endif /* CONFIG_FSNOTIFY */
326
327#endif /* _LINUX_FS_NOTIFY_H */ 296#endif /* _LINUX_FS_NOTIFY_H */