Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make fsnotify possibly work better for the inode removal case

Checking i_nlink is dubious, but the alternatives look even
less appetizing.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>

+2 -1
+2 -1
fs/dcache.c
··· 102 102 list_del_init(&dentry->d_alias); 103 103 spin_unlock(&dentry->d_lock); 104 104 spin_unlock(&dcache_lock); 105 - fsnotify_inoderemove(inode); 105 + if (!inode->i_nlink) 106 + fsnotify_inoderemove(inode); 106 107 if (dentry->d_op && dentry->d_op->d_iput) 107 108 dentry->d_op->d_iput(dentry, inode); 108 109 else