summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-02-11 12:57:04 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:52 -0400
commita1f26d700aa51fc942ca07ee501b9117075c84e0 (patch)
tree49ee1f1dbc4d5877953f9d902565063fc1eeb8ec /fs/bcachefs/bcachefs.h
parent09d70d0be1d5670a9df24656c5e429ab4f239c16 (diff)
downloadlwn-a1f26d700aa51fc942ca07ee501b9117075c84e0.tar.gz
lwn-a1f26d700aa51fc942ca07ee501b9117075c84e0.zip
bcachefs: Handle btree node rewrites before going RW
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 6089d9ed6c27..84b30adf56c9 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -780,6 +780,9 @@ struct bch_fs {
struct workqueue_struct *btree_interior_update_worker;
struct work_struct btree_interior_update_work;
+ struct list_head pending_node_rewrites;
+ struct mutex pending_node_rewrites_lock;
+
/* btree_io.c: */
spinlock_t btree_write_error_lock;
struct btree_write_stats {