summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-03-31 21:07:37 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:58 -0400
commitba5f03d362a8c7a32fd63c54cd3aeea0c9f3d7cc (patch)
tree28737b92313da213b1489195b7fbe0e988e74d10 /fs/bcachefs/bcachefs.h
parentd5a43661a1e9d9448e9e508470deec973c3d6644 (diff)
downloadlwn-ba5f03d362a8c7a32fd63c54cd3aeea0c9f3d7cc.tar.gz
lwn-ba5f03d362a8c7a32fd63c54cd3aeea0c9f3d7cc.zip
bcachefs: Add a sysfs var for average btree write size
Useful number for performance tuning. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index 51aefecb5cbb..c5ff142871c7 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -796,6 +796,9 @@ mempool_t bio_bounce_pages;
struct bio_set dio_write_bioset;
struct bio_set dio_read_bioset;
+
+ atomic64_t btree_writes_nr;
+ atomic64_t btree_writes_sectors;
struct bio_list btree_write_error_list;
struct work_struct btree_write_error_work;
spinlock_t btree_write_error_lock;