提交 46008d9d 编写于 作者: A Amir Goldstein 提交者: Jan Kara

btrfs: call fsnotify_rmdir() hook

This will allow generating fsnotify delete events after the
fsnotify_nameremove() hook is removed from d_delete().
Signed-off-by: NAmir Goldstein <amir73il@gmail.com>
Acked-by: NDavid Sterba <dsterba@suse.com>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 116b9731
......@@ -2930,8 +2930,10 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file,
inode_lock(inode);
err = btrfs_delete_subvolume(dir, dentry);
inode_unlock(inode);
if (!err)
if (!err) {
fsnotify_rmdir(dir, dentry);
d_delete(dentry);
}
out_dput:
dput(dentry);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册