[Bug 191953] [vfs] [patch] better KASSERT msg in _vn_lock()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 2 07:00:25 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191953

Andriy Gapon <avg at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
         Resolution|---                         |Works As Intended

--- Comment #5 from Andriy Gapon <avg at FreeBSD.org> ---
It seems that we could benefit from having a macro like KASSERT_IMPLY which
would assert A => B, that is, if A is true, then B must also be true (and B can
be anything if A is false).  In FreeBSD kernel this gets written as KASSERT(!A
|| B, ...) and sometimes there is a confusion when mapping back the code to the
logical statement.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list