tracefs: call fsnotify_{unlink,rmdir}() hooks
This will allow generating fsnotify delete events after the fsnotify_nameremove() hook is removed from d_delete(). Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
a35d632c72
commit
4bf2377472
|
@ -509,9 +509,12 @@ static int __tracefs_remove(struct dentry *dentry, struct dentry *parent)
|
|||
switch (dentry->d_inode->i_mode & S_IFMT) {
|
||||
case S_IFDIR:
|
||||
ret = simple_rmdir(parent->d_inode, dentry);
|
||||
if (!ret)
|
||||
fsnotify_rmdir(parent->d_inode, dentry);
|
||||
break;
|
||||
default:
|
||||
simple_unlink(parent->d_inode, dentry);
|
||||
fsnotify_unlink(parent->d_inode, dentry);
|
||||
break;
|
||||
}
|
||||
if (!ret)
|
||||
|
|
Loading…
Reference in New Issue