]> err.no Git - linux-2.6/commitdiff
[PATCH] fsnotify-cleanups
authorJohn McCutchan <ttb@tentacle.dhs.org>
Tue, 9 Aug 2005 02:13:05 +0000 (22:13 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 9 Aug 2005 02:22:42 +0000 (19:22 -0700)
This removes the now unused fsnotify_unlink & fsnotify_rmdir code.
Compile tested.

Signed-off-by: John McCutchan <ttb@tentacle.dhs.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/fsnotify.h

index 9db31d251c205358fc528eee3bfa774a3af3ff33..602c305c8585fcb6b175bfd27750fe09ca718da8 100644 (file)
@@ -43,30 +43,6 @@ static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir,
        }
 }
 
-/*
- * fsnotify_unlink - file was unlinked
- */
-static inline void fsnotify_unlink(struct dentry *dentry, struct inode *inode, struct inode *dir)
-{
-       inode_dir_notify(dir, DN_DELETE);
-       inotify_inode_queue_event(dir, IN_DELETE, 0, dentry->d_name.name);
-       inotify_inode_queue_event(inode, IN_DELETE_SELF, 0, NULL);
-
-       inotify_inode_is_dead(inode);
-}
-
-/*
- * fsnotify_rmdir - directory was removed
- */
-static inline void fsnotify_rmdir(struct dentry *dentry, struct inode *inode,
-                                 struct inode *dir)
-{
-       inode_dir_notify(dir, DN_DELETE);
-       inotify_inode_queue_event(dir,IN_DELETE|IN_ISDIR,0,dentry->d_name.name);
-       inotify_inode_queue_event(inode, IN_DELETE_SELF | IN_ISDIR, 0, NULL);
-       inotify_inode_is_dead(inode);
-}
-
 /*
  * fsnotify_nameremove - a filename was removed from a directory
  */