diff options
Diffstat (limited to 'fs/debugfs')
-rw-r--r-- | fs/debugfs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index d89874da9791..1e444fe1f778 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -643,8 +643,11 @@ static int __debugfs_remove(struct dentry *dentry, struct dentry *parent) dget(dentry); if (d_is_dir(dentry)) { ret = simple_rmdir(d_inode(parent), dentry); + if (!ret) + fsnotify_rmdir(d_inode(parent), dentry); } else { simple_unlink(d_inode(parent), dentry); + fsnotify_unlink(d_inode(parent), dentry); } if (!ret) d_delete(dentry); |