freebsd-dev/sys/fs
Hans Petter Selasky 56c49c63e7 Allow CUSE(3) to free all memory mapped memory by using regular SWAP objects
instead of malloc(). The SWAP objects are automagically freed when there are no
more consumers. This greatly simplifies the mmap logic inside CUSE(3) in the
kernel. This change fixes an issue where mmapped memory can accumulate and never
get freed, if many different mmap sizes are needed over time. Further this
change fixes memory leaks when the CUSE(3) kernel module is unloaded.

While at it make sure the CUSE_ALLOC_PAGES_MAX limit is treated as an exclusive
limit. CUSE(3) memory maps must be less than CUSE_ALLOC_PAGES_MAX number of pages.

Reviewed by:		kib @
Differential Revision:	https://reviews.freebsd.org/D11392
Sponsored by:		Mellanox Technologies
MFC after:		1 week
2017-11-03 14:10:57 +00:00
..
autofs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cd9660 Handle _PC_FILESIZEBITS and _PC_SYMLINK_MAX pathconf() requests in cd9660. 2017-10-02 23:12:02 +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 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
devfs Only handle _PC_MAX_CANON, _PC_MAX_INPUT, and _PC_VDISABLE for TTY devices. 2017-09-21 23:05:32 +00:00
ext2fs Fix physical block number overflow in different places. 2017-10-24 20:10:08 +00:00
fdescfs Implement proper Linux /dev/fd and /proc/self/fd behavior by adding 2017-08-01 03:40:19 +00:00
fifofs Consistently use vop_stdpathconf() for default pathconf values. 2017-07-11 21:55:20 +00:00
fuse Add extended attributes support to fuse kernel module. 2017-10-14 19:02:52 +00:00
msdosfs msdosfs: fix build with MSDOSFS_DEBUG 2017-10-19 12:55:11 +00:00
nandfs Consistently use vop_stdpathconf() for default pathconf values. 2017-07-11 21:55:20 +00:00
nfs Use taskqueue(9) to do writes/commits to mirrored DSs concurrently. 2017-10-16 23:28:12 +00:00
nfsclient Use taskqueue(9) to do writes/commits to mirrored DSs concurrently. 2017-10-16 23:28:12 +00:00
nfsserver Fix the client IP address reported by nfsdumpstate for 64bit arch and NFSv4.1. 2017-10-15 22:22:27 +00:00
nullfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
procfs remove procfs ctl interface 2017-03-05 03:05:24 +00:00
pseudofs Delete declarations of struct pfs_bitmap, removed in r143841. 2017-10-22 20:22:11 +00:00
smbfs Mark pages after EOF as clean after pageout. 2017-07-26 20:07:05 +00:00
tmpfs Move clear_unrhdr to tmpfs_free_tmp. 2017-10-23 15:43:38 +00:00
udf Flesh out pathconf() on UDF. 2017-10-02 23:31:11 +00:00
unionfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00