]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Clear fs_path_parent on subvolume unlink
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Mar 2025 21:59:50 +0000 (17:59 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 30 Mar 2025 00:16:49 +0000 (20:16 -0400)
commitb3981564ca8fa341a57c16dcbed1a9bd7f4e3be1
tree5714ac2f5fa81aedcd04212e058d8a34f76ab5e1
parent63c3b8f616cc95bb1fcc6101c92485d41c535d7c
bcachefs: Clear fs_path_parent on subvolume unlink

This fixes recursive subvolume removal.

Subvolume deletion is asynchronous; fs_path_parent, and thus the entry
in the subvolume_children btree, need to be cleared when the subvolume
is unlinked from the fs heirarchy - else we'll spuriously think a
subvolume has children and deletion will fail.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/subvolume.c