Tested by: pho
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/kern/vfs_mount.c | ||
---|---|---|
1771 | did you mean to put this after the decrement? as is it always passes since it is already asserted that the count is at least 1 i think for now it will most sense to change it into an if statement and include the same debug info as the already existing panic |
sys/kern/vfs_mount.c | ||
---|---|---|
1771 | So I have a question, why vfs_op_enter() and vfs_op_exit_locked() do panic() instead of using KASSERT? What makes these conditions so special? BTW, panic() format string must not end with "\n", and lines in vfs_op_enter() are too long. |
sys/kern/vfs_mount.c | ||
---|---|---|
1771 | It follows other checks in the area, for example see all the panics in vfs_mount_destroy. I don't have a strong opinion one way or the other. This probably should get a MOUNTASSERT or whatever the name in a vain similar to VNASSERT. |