bch2_ioctl_subvolume_destroy(): fix locking

commit bbe6a7c899 upstream.

make it use user_path_locked_at() to get the normal directory protection
for modifications, as well as stable ->d_parent and ->d_name in victim

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Al Viro 2023-11-14 18:52:42 -05:00 • committed by Greg Kroah-Hartman
commit dc610c441b