]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bcachefs: bch2_ioctl_subvolume_destroy() fixes
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Mar 2025 23:01:09 +0000 (19:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Apr 2025 08:08:37 +0000 (10:08 +0200)
commit9e6e83e1e2d01b99e70cd7812d7f758a8def9fc8
tree4a94a0c1f94f63876d75f0671a9a6b6b7d1c81d8
parenta964484a3537f121edd94a0dfbe6ac853c0462cf
bcachefs: bch2_ioctl_subvolume_destroy() fixes

[ Upstream commit 707549600c4a012ed71c0204a7992a679880bf33 ]

bch2_evict_subvolume_inodes() was getting stuck - due to incorrectly
pruning the dcache.

Also, fix missing permissions checks.

Reported-by: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/bcachefs/fs-ioctl.c