bcachefs: check dirent->d_parent_subvol
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 7 Feb 2024 05:45:09 +0000 (00:45 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:22:24 +0000 (21:22 -0400)
commitc60b7f803c8b7dbea75b3cbfd23d788bab7215a6
treeea01dac8b063f5509eb39f02425ddf00972b9c38
parentf4e68c859f4e335f0b07dfcc6703cfe501265deb
bcachefs: check dirent->d_parent_subvol

Check that d_parent_subvol makes sense - the dirent's snapshot must be
visible in d_parent_subvol (i.e. an ancestor of d_parent_subvol's
snapshot) in order to be visible.

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