Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2004 17:03:14 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/fs/devfs devfs_vnops.c
Message-ID:  <200407221703.i6MH3EHM008303@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407221703.i6MH3EHM008303>