sys/vfs/msdosfs: Take inusemap inconsistency as an error, not invariants violation
commit5dd3291fafdd28db2c56c917307681b3869a11c4
authorTomohiro Kusumi <tkusumi@netbsd.org>
Tue, 1 Feb 2022 16:23:17 +0000 (2 01:23 +0900)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Tue, 1 Feb 2022 16:23:17 +0000 (2 01:23 +0900)
tree8f111b0759881530c8925c527ae9125bf114e29c
parentb346beab2a7be3daf6d3925ef23bb46710c2350b
sys/vfs/msdosfs: Take inusemap inconsistency as an error, not invariants violation

In other words, stop silently accepting freeing free cluster in
non-debug kernels, but return the error to the caller.  Modify callers
to handle errors from usemap_free().

taken-from FreeBSD 2c9a1c22c323b069d1f4883170349545c94b7b8d
sys/vfs/msdosfs/msdosfs_fat.c