Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f805fbda authored by Linus Torvalds's avatar Linus Torvalds
Browse files

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: default avatarLinus Torvalds <torvalds@osdl.org>
parent 875bd5ab
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -102,6 +102,7 @@ static inline void dentry_iput(struct dentry * dentry)
		list_del_init(&dentry->d_alias);
		spin_unlock(&dentry->d_lock);
		spin_unlock(&dcache_lock);
		if (!inode->i_nlink)
			fsnotify_inoderemove(inode);
		if (dentry->d_op && dentry->d_op->d_iput)
			dentry->d_op->d_iput(dentry, inode);