aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fsnotify.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fsnotify.h')
-rw-r--r--include/linux/fsnotify.h31
1 files changed, 0 insertions, 31 deletions
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 */