freebsd-dev/sys/fs
Mark Johnston 84242cf68a Call swap_pager_freespace() from vm_object_page_remove().
All vm_object_page_remove() callers, except
linux_invalidate_mapping_pages() in the LinuxKPI, free swap space when
removing a range of pages from an object.  The LinuxKPI case appears to
be an unintentional omission that could result in leaked swap blocks, so
unconditionally free swap space in vm_object_page_remove() to protect
against similar bugs in the future.

Reviewed by:	alc, kib
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25329
2020-06-25 15:21:21 +00:00
..
autofs
cd9660 Fix export_args ex_flags field so that is 64bits, the same as mnt_flags. 2020-06-14 00:10:18 +00:00
cuse
deadfs
devfs vfs: track sequential reads and writes separately 2020-06-21 08:51:24 +00:00
ext2fs Add BE architectures support. 2020-05-17 14:52:54 +00:00
fdescfs
fifofs
fuse copystr(9): Move to deprecate (attempt #2) 2020-05-25 16:40:48 +00:00
mntfs
msdosfs Fix export_args ex_flags field so that is 64bits, the same as mnt_flags. 2020-06-14 00:10:18 +00:00
nfs Add some missing parts for supporting va_birthtime. 2020-06-22 08:23:16 +00:00
nfsclient Remove vfs_statfs and vnode_mount macros from NFS 2020-06-17 16:20:19 +00:00
nfsserver Remove vfs_statfs and vnode_mount macros from NFS 2020-06-17 16:20:19 +00:00
nullfs
procfs
pseudofs
smbfs
tmpfs Call swap_pager_freespace() from vm_object_page_remove(). 2020-06-25 15:21:21 +00:00
udf
unionfs Fix export_args ex_flags field so that is 64bits, the same as mnt_flags. 2020-06-14 00:10:18 +00:00