]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r312600,r312601,r312602,r312606,r312646:
authormjg <mjg@FreeBSD.org>
Thu, 16 Mar 2017 09:17:14 +0000 (09:17 +0000)
committermjg <mjg@FreeBSD.org>
Thu, 16 Mar 2017 09:17:14 +0000 (09:17 +0000)
commitb7be7eaded3ab375d742177021e0dcc15a86ffa0
treebb0d957f0faaaabcfa6838b94a60460511c756a4
parent8ccd06bc3a50430569bde4e69bce65c4ac636189
MFC r312600,r312601,r312602,r312606,r312646:

vfs: refactor _vn_lock

Stop testing for LK_RETRY and error multiple times. Also postpone the
VI_DOOMED until after LK_RETRY was seen as it reads from the vnode.

No functional changes.

==

vfs: fix whitespace damage in r312600

While here wrap the previously overly long line so that it fits 80 chars.

==

vfs: __predict_false the need to handle F_HASLOCK

Also reorder the check with DTYPE_VNODE. Passed files are vnodes vast
majority of the time, so it is typically true.

==

vfs: fix LK_RETRY logic braino in r312600

==

More style cleanup.  Use ANSI C definition for vn_closefile().  Switch
to VNASSERT in _vn_lock(), simplify messages.
sys/kern/vfs_vnops.c