bcachefs: Correctly reattach subvolumes
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 9 Feb 2024 21:04:50 +0000 (16:04 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:22:24 +0000 (21:22 -0400)
commit56e230473d395c953cfab78b876fcf0f62b455b1
treea3b4d390728447bd11b8fe4b8d622a4d36e1dffc
parent3a136177f3a7929ca1ae3712267548ac4a668cf8
bcachefs: Correctly reattach subvolumes

Subvolumes need special handling to reattach - we always reattach them
in the root subvolume's lost+found, and they need a slightly different
kind of dirent.

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