freebsd-dev/sys/fs/tmpfs
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
..
tmpfs_fifoops.c vfs: flatten vop vectors 2019-12-16 00:06:22 +00:00
tmpfs_fifoops.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
tmpfs_subr.c Call swap_pager_freespace() from vm_object_page_remove(). 2020-06-25 15:21:21 +00:00
tmpfs_vfsops.c tmpfs: Preserve alignment of struct fid fields 2020-06-03 09:38:51 +00:00
tmpfs_vnops.c tmpfs: Preserve alignment of struct fid fields 2020-06-03 09:38:51 +00:00
tmpfs_vnops.h Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
tmpfs.h tmpfs: Preserve alignment of struct fid fields 2020-06-03 09:38:51 +00:00