summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/nocow_locking.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-09-24 16:25:06 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:15 -0400
commit1e3b40980b931728f5d2c0ef8352f6aed6799a69 (patch)
tree361b5d9806770c9a5ec5d11f2a12b44182d14b16 /fs/bcachefs/nocow_locking.h
parentefedfc2ece141389a9f522a298781cc929262701 (diff)
downloadlinux-1e3b40980b931728f5d2c0ef8352f6aed6799a69.tar.gz
linux-1e3b40980b931728f5d2c0ef8352f6aed6799a69.tar.bz2
linux-1e3b40980b931728f5d2c0ef8352f6aed6799a69.zip
bcachefs: More assertions for nocow locking
- assert in shutdown path that no nocow locks are held - check for overflow when taking nocow locks Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/nocow_locking.h')
-rw-r--r--fs/bcachefs/nocow_locking.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/nocow_locking.h b/fs/bcachefs/nocow_locking.h
index ff8e4af52edc..f9d6a426a960 100644
--- a/fs/bcachefs/nocow_locking.h
+++ b/fs/bcachefs/nocow_locking.h
@@ -44,6 +44,7 @@ static inline bool bch2_bucket_nocow_trylock(struct bucket_nocow_lock_table *t,
void bch2_nocow_locks_to_text(struct printbuf *, struct bucket_nocow_lock_table *);
+void bch2_fs_nocow_locking_exit(struct bch_fs *);
int bch2_fs_nocow_locking_init(struct bch_fs *);
#endif /* _BCACHEFS_NOCOW_LOCKING_H */