diff --git a/[refs] b/[refs] index e07e05e39678..d493ab929af2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 875bd5ab01bc0b760fd4e97838931cd2e7456cbd +refs/heads/master: f805fbdaacf4367ce566743a665622387768ac0d diff --git a/trunk/fs/dcache.c b/trunk/fs/dcache.c index 7376b61269fb..fb10386c59be 100644 --- a/trunk/fs/dcache.c +++ b/trunk/fs/dcache.c @@ -102,7 +102,8 @@ static inline void dentry_iput(struct dentry * dentry) list_del_init(&dentry->d_alias); spin_unlock(&dentry->d_lock); spin_unlock(&dcache_lock); - fsnotify_inoderemove(inode); + if (!inode->i_nlink) + fsnotify_inoderemove(inode); if (dentry->d_op && dentry->d_op->d_iput) dentry->d_op->d_iput(dentry, inode); else