summaryrefslogtreecommitdiff
path: root/fs/bcachefs/buckets_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-05-15 15:47:43 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:22 -0400
commit3838be78410cfe52a067b8e88dfcff922084e627 (patch)
tree1cd150d18e1dada5dd07eee705be0201461f8315 /fs/bcachefs/buckets_types.h
parent61011ea237852ef7d29b7d6b3608a6538560fc76 (diff)
bcachefs: Don't use a fixed size buffer for fs_usage_deltas
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets_types.h')
-rw-r--r--fs/bcachefs/buckets_types.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/bcachefs/buckets_types.h b/fs/bcachefs/buckets_types.h
index ec4294d41518..efed658abc6a 100644
--- a/fs/bcachefs/buckets_types.h
+++ b/fs/bcachefs/buckets_types.h
@@ -99,11 +99,10 @@ struct replicas_delta {
} __packed;
struct replicas_delta_list {
+ unsigned size;
+ unsigned used;
struct bch_fs_usage fs_usage;
-
- struct replicas_delta *top;
struct replicas_delta d[0];
- u8 pad[256];
};
/*