bcachefs: More assertions for nocow locking
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 24 Sep 2023 20:25:06 +0000 (16:25 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:15 +0000 (17:10 -0400)
commit1e3b40980b931728f5d2c0ef8352f6aed6799a69
tree361b5d9806770c9a5ec5d11f2a12b44182d14b16
parentefedfc2ece141389a9f522a298781cc929262701
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>
fs/bcachefs/nocow_locking.c
fs/bcachefs/nocow_locking.h
fs/bcachefs/super.c