bcachefs: Check subvol <-> inode pointers in check_subvol()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 6 Feb 2024 03:20:12 +0000 (22:20 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:22:23 +0000 (21:22 -0400)
commit4c20278eb18ac22691aea6d9ecc8d98acffafd0d
treec2c8136ac56c6ddbbdca69fa8e23a8ab8588f690
parent52946d828aac5bc8e20665a8434f87740fad03e3
bcachefs: Check subvol <-> inode pointers in check_subvol()

Subvolumes and subvolume root inodes point to each other: this verifies
the subvolume -> inode -> subvolme path.

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