Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2009 14:57:43 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern vfs_cache.c src/sys/sys vnode.h
Message-ID:  <200905311458.n4VEwaxq088862@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-05-31 14:57:43 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_cache.c 
    sys/sys              vnode.h 
  Log:
  SVN rev 193174 on 2009-05-31 14:57:43Z by kib
  
  Eliminate code duplication in vn_fullpath1() around the cache lookups
  and calls to vn_vptocnp() by moving more of the common code to
  vn_vptocnp(). Rename vn_vptocnp() to vn_vptocnp_locked() to signify that
  cache is locked around the call.
  
  Do not track buffer position by both the pointer and offset, use only
  buflen to record the start of the free space.
  
  Export vn_vptocnp() for external consumers as a wrapper around
  vn_vptocnp_locked() that locks the cache and handles hold counts.
  
  Tested by:      pho
  
  Revision  Changes    Path
  1.155     +75 -85    src/sys/kern/vfs_cache.c
  1.355     +1 -0      src/sys/sys/vnode.h



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