freebsd-skq/sys/fs
Konstantin Belousov cfb03f67d9 Reuse kern_proc_vmmap_resident() for procfs_map resident count.
The existing algorithm in procfs_map() to calculate count of resident
pages in an entry is too primitive, resulting in too long run time for
large sparse mapping entries.  Re-use the kern_proc_vmmap_resident()
from kern_proc.c which only looks at the existing pages in the
iterations.

Also, this makes procfs to honor kern.proc_vmmap_skip_resident_count,
if user does not need this information.

Reported by:	Glenn Weinberg <glenn.weinberg@intel.com>
PR:	224532
No objections from:	des (procfs maintainer)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D13595
2017-12-28 13:23:13 +00:00
..
autofs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cd9660 Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
cuse Allow CUSE(3) to free all memory mapped memory by using regular SWAP objects 2017-11-03 14:10:57 +00:00
deadfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
devfs Report INT_MAX for LINK_MAX for devfs' VOP_PATHCONF(). 2017-12-19 20:07:57 +00:00
ext2fs Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
fdescfs Add a custom VOP_PATHCONF method for fdescfs. 2017-12-19 18:20:38 +00:00
fifofs Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
fuse Update link count handling in fuse for post-ino64. 2017-12-19 22:40:54 +00:00
msdosfs Move NAME_MAX, LINK_MAX, and CHOWN_RESTRICTED out of vop_stdpathconf(). 2017-12-19 19:51:36 +00:00
nandfs Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
nfs Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
nfsclient kernel: Fix several typos and minor errors 2017-12-27 03:23:21 +00:00
nfsserver Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
nullfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs Reuse kern_proc_vmmap_resident() for procfs_map resident count. 2017-12-28 13:23:13 +00:00
pseudofs sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
smbfs Move NAME_MAX, LINK_MAX, and CHOWN_RESTRICTED out of vop_stdpathconf(). 2017-12-19 19:51:36 +00:00
tmpfs Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
udf Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
unionfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00