cvs commit: src/sys/fs/devfs devfs_vnops.c
Robert Watson
rwatson at FreeBSD.org
Thu Jul 22 10:03:14 PDT 2004
rwatson 2004-07-22 17:03:14 UTC
FreeBSD src repository
Modified files:
sys/fs/devfs devfs_vnops.c
Log:
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.
Revision Changes Path
1.72 +9 -7 src/sys/fs/devfs/devfs_vnops.c
More information about the cvs-all
mailing list