aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fsnotify.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-07-08 13:50:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-08 13:50:54 -0400
commitb8d4c1f9f48e344fe1d6e6ffae01d4b31bf0aac0 (patch)
tree24685a7b0ebf8af0ff55f1384e0be125aa29da47 /include/linux/fsnotify.h
parent090a81d8766e21d33ab3e4d24e6c8e5eedf086dd (diff)
parent49d31c2f389acfe83417083e1208422b4091cd9e (diff)
Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc filesystem updates from Al Viro: "Assorted normal VFS / filesystems stuff..." * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: dentry name snapshots Make statfs properly return read-only state after emergency remount fs/dcache: init in_lookup_hashtable minix: Deinline get_block, save 2691 bytes fs: Reorder inode_owner_or_capable() to avoid needless fs: warn in case userspace lied about modprobe return
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 */