• J
    [PATCH] fsnotify_name/inoderemove · 7a91bf7f
    John McCutchan 提交于
    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: NJohn McCutchan <ttb@tentacle.dhs.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    7a91bf7f
dcache.c 44.1 KB