bcachefs: Fix for 'missing subvolume' error
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 16 Mar 2023 15:04:28 +0000 (11:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:57 +0000 (17:09 -0400)
commit2d33036ca9360bacef23ba32e7768ff9ea87f2be
tree1c425312eb2896e788276ed19a898c1feb469475
parent56cc033dfcf002eb8a957097fe7290546829b7c0
bcachefs: Fix for 'missing subvolume' error

Subvolumes, including their root inodes, get deleted asynchronously
after an unlink. But we still need to ensure that we tell the VFS the
inode has been deleted, otherwise VFS writeback could fire after
asynchronous deletion has finished, and try to write to an
inode/subvolume that no longer exists.

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