]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In devfs_allocv(), rather than assigning 'td = curthread', assert that
authorrwatson <rwatson@FreeBSD.org>
Thu, 22 Jul 2004 17:03:14 +0000 (17:03 +0000)
committerrwatson <rwatson@FreeBSD.org>
Thu, 22 Jul 2004 17:03:14 +0000 (17:03 +0000)
commit01be595ab33612b855914baf3ef7b67166cbe2ed
treecdb057b665021dafc3545bb0c6e6512858681ed2
parentaafe09f5863c0dee265c3ee3ba4f537356c44af2
In devfs_allocv(), rather than assigning 'td = curthread', assert that
the caller passes in a td that is curthread, and consistently pass 'td'
into vget().  Remove some bogus logic that passed in td or curthread
conditional on td being non-NULL, which seems redundant in the face of
the earlier assignment of td to curthread if td is NULL.

In devfs_symlink(), cache the passed thread in 'td' so we don't have
to keep retrieving it from the 'ap' structure, and assert that td is
curthread (since we dereference it to get thread-local td_ucred).  Use
'td' in preference to curthread for later lockmgr calls, since they are
equal.
sys/fs/devfs/devfs_vnops.c