• John McCutchan's avatar
    [PATCH] fsnotify_name/inoderemove · 7a91bf7f
    John McCutchan authored
    The patch below unhooks fsnotify from vfs_unlink & vfs_rmdir.  It
    introduces two new fsnotify calls, that are hooked in at the dcache
    level.  This not only more closely matches how the VFS layer works, it
    also avoids the problem with locking and inode lifetimes.
    
    The two functions are
    
     - fsnotify_nameremove -- called when a directory entry is going away.
       It notifies the PARENT of the deletion.  This is called from
       d_delete().
    
     - inoderemove -- called when the files inode itself is going away.  It
       notifies the inode that is being deleted.  This is called from
       dentry_iput().
    Signed-off-by: default avatarJohn McCutchan <ttb@tentacle.dhs.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    7a91bf7f
namei.c 60.3 KB