freebsd-skq/sys/fs
Konstantin Belousov 481208a815 If a race is detected, pfs_vncache_alloc() may reclaim a vnode that had
never been inserted into the pfs_vncache list. Since pfs_vncache_free()
does not anticipate this case, it decrements pfs_vncache_entries
unconditionally; if the vnode was not in the list, pfs_vncache_entries
will no longer reflect the actual number of list entries. This may cause
size of the cache to exceed the configured maximum. It may also trigger
a panic during module unload or system shutdown.

Do not decrement pfs_vncache_entries for the vnode that was not in the
list.

Submitted by:	tegge
Reviewed by:	des
MFC after:	1 week
2009-09-07 12:10:41 +00:00
..
cd9660 In vn_vget_ino() and their inline equivalents, mnt_ref() the mount point 2009-07-02 18:02:55 +00:00
coda Change the type of uio_resid member of struct uio from int to ssize_t. 2009-06-25 18:46:30 +00:00
deadfs Add a simple VOP_VPTOCNP implementation for deadfs which returns EBADF. 2008-12-12 00:59:36 +00:00
devfs Improve nested jail awareness of devfs by handling credentials. 2009-06-20 14:50:32 +00:00
fdescfs Report all fdescfs vnodes as VCHR for stat(2). Fake the unique 2009-05-12 09:28:45 +00:00
fifofs Fix poll() on half-closed sockets, while retaining POLLHUP for fifos. 2009-08-25 21:44:14 +00:00
hpfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
msdosfs Fix r193923 by noting that type of a_fp is struct file *, not int. 2009-06-10 14:24:31 +00:00
nfs Merge the remainder of kern_vimage.c and vimage.h into vnet.c and 2009-08-01 19:26:27 +00:00
nfsclient Fix NFS panics with options VIMAGE kernels by apropriately setting curvnet 2009-08-24 10:09:30 +00:00
nfsserver Build on Jeff Roberson's linker-set based dynamic per-CPU allocator 2009-07-14 22:48:30 +00:00
ntfs In non-debugging mode make this define (void)0 instead of nothing. This 2009-06-21 08:36:30 +00:00
nullfs Add explicit struct ucred * argument for VOP_VPTOCNP, to be used by 2009-06-21 19:21:01 +00:00
nwfs Eliminate the unnecessary clearing of a page's dirty bits from 2009-05-23 18:25:11 +00:00
portalfs Rework the credential code to support larger values of NGROUPS and 2009-06-19 17:10:35 +00:00
procfs Add a new type of VM object: OBJT_SG. An OBJT_SG object is very similar to 2009-07-24 13:50:29 +00:00
pseudofs If a race is detected, pfs_vncache_alloc() may reclaim a vnode that had 2009-09-07 12:10:41 +00:00
smbfs Make *getpages()s' assertion on the state of each page's dirty bits 2009-05-28 18:11:09 +00:00
tmpfs Implement global and per-uid accounting of the anonymous memory. Add 2009-06-23 20:45:22 +00:00
udf Use #ifdef APPLE_MAC instead of #ifdef MAC to conditionalize Apple-specific 2009-06-06 07:13:57 +00:00
unionfs Fix some LORs between vnode locks and filedescriptor table locks. 2009-07-31 13:40:06 +00:00