freebsd-dev/sys/ufs
Don Lewis fa288043e2 VOP_FSYNC() requires that it's vnode argument be locked, which nfs_link()
wasn't doing.  Rather than just lock and unlock the vnode around the call
to VOP_FSYNC(), implement rwatson's suggestion to lock the file vnode
in kern_link() before calling VOP_LINK(), since the other filesystems
also locked the file vnode right away in their link methods.  Remove the
locking and and unlocking from the leaf filesystem link methods.

Reviewed by:	rwatson, bde  (except for the unionfs_link() changes)
2002-09-19 13:32:45 +00:00
..
ffs intmax_t is printed with %jd, not %lld. 2002-09-19 03:55:30 +00:00
ufs VOP_FSYNC() requires that it's vnode argument be locked, which nfs_link() 2002-09-19 13:32:45 +00:00