From a6cd1869d999d0c4a894bff39d754e9e677aa7cd Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 19 Sep 2005 19:54:29 -0700 Subject: [PATCH] --- yaml --- r: 9088 b: refs/heads/master c: f805fbdaacf4367ce566743a665622387768ac0d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/dcache.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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