summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-03-21 20:16:23 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-31 20:36:11 -0400
commit63332394c7e1f4f26e8e5b1387212016aaa7eae2 (patch)
tree0edf5feb41cb95963f6b65f7f8abf7c14910a1df /fs/bcachefs/bcachefs.h
parentaa6e130e3c2965a5c26a4033ff63b5dc9549bd76 (diff)
downloadlinux-stable-63332394c7e1f4f26e8e5b1387212016aaa7eae2.tar.gz
linux-stable-63332394c7e1f4f26e8e5b1387212016aaa7eae2.tar.bz2
linux-stable-63332394c7e1f4f26e8e5b1387212016aaa7eae2.zip
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>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index 799aa32b6b4d..a9ade0b1f78c 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -810,7 +810,6 @@ struct bch_fs {
/* snapshot.c: */
struct snapshot_table __rcu *snapshots;
- size_t snapshot_table_size;
struct mutex snapshot_table_lock;
struct rw_semaphore snapshot_create_lock;