]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Move snapshot table size to struct snapshot_table
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 22 Mar 2024 00:16:23 +0000 (20:16 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Apr 2024 00:36:11 +0000 (20:36 -0400)
commit63332394c7e1f4f26e8e5b1387212016aaa7eae2
tree0edf5feb41cb95963f6b65f7f8abf7c14910a1df
parentaa6e130e3c2965a5c26a4033ff63b5dc9549bd76
bcachefs: Move snapshot table size to struct snapshot_table

We need to add bounds checking for snapshot table accesses - it turns
out there are cases where we do need to use the snapshots table before
fsck checks have completed (and indeed, fsck may not have been run).

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