Tested by: pho
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
sys/kern/vfs_mount.c | ||
---|---|---|
1769 | 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 | ||
---|---|---|
1769 | 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 | ||
---|---|---|
1769 | 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. |