diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-24 16:25:06 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:15 -0400 |
commit | 1e3b40980b931728f5d2c0ef8352f6aed6799a69 (patch) | |
tree | 361b5d9806770c9a5ec5d11f2a12b44182d14b16 /fs/bcachefs/super.c | |
parent | efedfc2ece141389a9f522a298781cc929262701 (diff) | |
download | lwn-1e3b40980b931728f5d2c0ef8352f6aed6799a69.tar.gz lwn-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/super.c')
-rw-r--r-- | fs/bcachefs/super.c | 1 |
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); |