mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
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: Amir Goldstein <amir73il@gmail.com> Acked-by: David Sterba <dsterba@suse.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
116b9731ad
commit
46008d9d3f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user