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>
This commit is contained in:
Kent Overstreet 2023-09-24 16:25:06 -04:00
commit 1e3b40980b
3 changed files with 31 additions and 8 deletions