freebsd-nq/sys/fs
Rick Macklem 5e99212d36 Post r230394, the Lookup RPC counts for both NFS clients increased
significantly. Upon investigation this was caused by name cache
misses for lookups of "..". For name cache entries for non-".."
directories, the cache entry serves double duty. It maps both the
named directory plus ".." for the parent of the directory. As such,
two ctime values (one for each of the directory and its parent) need
to be saved in the name cache entry.
This patch adds an entry for ctime of the parent directory to the
name cache. It also adds an additional uma zone for large entries
with this time value, in order to minimize memory wastage.
As well, it fixes a couple of cases where the mtime of the parent
directory was being saved instead of ctime for positive name cache
entries. With this patch, Lookup RPC counts return to values similar
to pre-r230394 kernels.

Reported by:	bde
Discussed with:	kib
Reviewed by:	jhb
MFC after:	2 weeks
2012-03-03 01:06:54 +00:00
..
cd9660 Fix found places where uio_resid is truncated to int. 2012-02-21 01:05:12 +00:00
coda Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
deadfs
devfs Add "export" to devfs_opts[] and return EOPNOTSUPP if called with it. 2012-02-29 16:16:36 +00:00
ext2fs Fix found places where uio_resid is truncated to int. 2012-02-21 01:05:12 +00:00
fdescfs Make sure all intermediate variables holding mount flags (mnt_flag) 2012-01-17 01:08:01 +00:00
fifofs merge pipe and fifo implementations 2012-02-23 18:37:30 +00:00
hpfs Make sure all intermediate variables holding mount flags (mnt_flag) 2012-01-17 01:08:01 +00:00
msdosfs Use DOINGASYNC() to test for async allowance, to honor VFS syncing requests. 2012-02-22 13:01:17 +00:00
nfs Delete a couple of out of date comments that are no longer true in 2012-02-16 02:19:53 +00:00
nfsclient Post r230394, the Lookup RPC counts for both NFS clients increased 2012-03-03 01:06:54 +00:00
nfsserver hrs@ reported a panic to freebsd-stable@ under the subject line 2012-02-23 16:47:05 +00:00
ntfs Remove an unused structure and unnecessary cast 2012-02-24 07:30:44 +00:00
nullfs Do not expose unlocked unconstructed nullfs vnode on mount list. 2012-03-02 09:48:46 +00:00
nwfs Rename cache_lookup_times() to cache_lookup() and retire the old API and 2012-02-06 17:00:28 +00:00
portalfs Make sure all intermediate variables holding mount flags (mnt_flag) 2012-01-17 01:08:01 +00:00
procfs Add procfs to jail-mountable filesystems. 2012-02-29 00:30:18 +00:00
pseudofs Add procfs to jail-mountable filesystems. 2012-02-29 00:30:18 +00:00
smbfs Rename cache_lookup_times() to cache_lookup() and retire the old API and 2012-02-06 17:00:28 +00:00
tmpfs Similar to the fixes in 226967 and 226987, purge any name cache entries 2012-03-02 18:55:19 +00:00
udf Fix found places where uio_resid is truncated to int. 2012-02-21 01:05:12 +00:00
unionfs Make unionfs also clear VAPPEND when clearing VWRITE, since VAPPEND 2011-10-10 21:32:08 +00:00