]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix __bch2_inum_to_path() when crossing subvol boundaries
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 18:00:40 +0000 (14:00 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 23:04:48 +0000 (19:04 -0400)
commit9ba6930ef8e0e00102716f4627896e0be6358d7b
tree4e7eb4c9fcabd9a3e119731d5b41a529005e3fde
parent1cddad0fcbccc7056036f2a83184a3ca5c62f7d3
bcachefs: Fix __bch2_inum_to_path() when crossing subvol boundaries

The bch2_subvolume_get_snapshot() call needs to happen before the dirent
lookup - the dirent is in the parent subvolume.

Also, check for loops.

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