kernel - Fix bug in cahce_fromdvp() as uesd by NFS's readdirplus
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 9 Feb 2010 08:05:55 +0000 (00:05 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 9 Feb 2010 08:05:55 +0000 (00:05 -0800)
commit269a08e4bbfd79e2f4d7299e7f652c6ca8cc12a3
treea06c8cd050d11db757e52cdeb38b34629c66185e
parentfc183e1f416135accf400a89e8cc87f801bc84e4
kernel - Fix bug in cahce_fromdvp() as uesd by NFS's readdirplus

* cache_fromdvp() is supposed to return a held ncp for the directory
  vnode's namecache entry if one is present and makeit is 0.  It
  was returning NULL instead.

* NFS readdirplus was kprintf()ing debug info unconditionally when
  it was able to successfully construct a vnode.  #if 0 out the
  kprintf().
sys/kern/vfs_cache.c
sys/vfs/nfs/nfs_vnops.c