|
@@ -1172,11 +1172,11 @@ void d_delete(struct dentry * dentry)
|
|
|
spin_lock(&dentry->d_lock);
|
|
|
isdir = S_ISDIR(dentry->d_inode->i_mode);
|
|
|
if (atomic_read(&dentry->d_count) == 1) {
|
|
|
- /* remove this and other inotify debug checks after 2.6.18 */
|
|
|
- dentry->d_flags &= ~DCACHE_INOTIFY_PARENT_WATCHED;
|
|
|
-
|
|
|
dentry_iput(dentry);
|
|
|
fsnotify_nameremove(dentry, isdir);
|
|
|
+
|
|
|
+ /* remove this and other inotify debug checks after 2.6.18 */
|
|
|
+ dentry->d_flags &= ~DCACHE_INOTIFY_PARENT_WATCHED;
|
|
|
return;
|
|
|
}
|
|
|
|