summaryrefslogtreecommitdiff
path: root/fs/bcachefs/super.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-09-24 23:25:06 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:10:15 +0300
commit1e3b40980b931728f5d2c0ef8352f6aed6799a69 (patch)
tree361b5d9806770c9a5ec5d11f2a12b44182d14b16 /fs/bcachefs/super.c
parentefedfc2ece141389a9f522a298781cc929262701 (diff)
downloadlinux-1e3b40980b931728f5d2c0ef8352f6aed6799a69.tar.xz
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/super.c')
-rw-r--r--fs/bcachefs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c
index e94a63a22704..1347270e5045 100644
--- a/fs/bcachefs/super.c
+++ b/fs/bcachefs/super.c
@@ -484,6 +484,7 @@ static void __bch2_fs_free(struct bch_fs *c)
bch2_fs_fsio_exit(c);
bch2_fs_ec_exit(c);
bch2_fs_encryption_exit(c);
+ bch2_fs_nocow_locking_exit(c);
bch2_fs_io_write_exit(c);
bch2_fs_io_read_exit(c);
bch2_fs_buckets_waiting_for_journal_exit(c);