1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00
freebsd/sys
Konstantin Belousov 6f2af3fcf3 Rework the handling of the tmpfs node backing swap object and tmpfs
vnode v_object to avoid double-buffering.  Use the same object both as
the backing store for tmpfs node and as the v_object.

Besides reducing memory use up to 2x times for situation of mapping
files from tmpfs, it also makes tmpfs read and write operations copy
twice bytes less.

VM subsystem was already slightly adapted to tolerate OBJT_SWAP object
as v_object. Now the vm_object_deallocate() is modified to not
reinstantiate OBJ_ONEMAPPING flag and help the VFS to correctly handle
VV_TEXT flag on the last dereference of the tmpfs backing object.

Reviewed by:	alc
Tested by:	pho, bf
MFC after:	1 month
2013-04-28 19:38:59 +00:00
..
amd64 Add RIP-relative addressing to the instruction decoder. 2013-04-25 04:56:43 +00:00
arm Bring copyright changes with the agreement of Thomas Skibo. 2013-04-28 07:00:36 +00:00
boot Add Xilinx Zynq ARM/FPGA SoC support to FreeBSD/arm port. 2013-04-27 22:38:29 +00:00
bsm Implement chflagsat(2) system call, similar to fchmodat(2), but operates on 2013-03-21 22:59:01 +00:00
cam Add some cam_freeze_devq()'s missed at r249466. 2013-04-28 18:12:43 +00:00
cddl Changed ZFS TRIM sysctl from vfs.zfs.trim_disable -> vfs.zfs.trim.enabled 2013-04-26 11:24:20 +00:00
compat Regen. 2013-04-02 05:30:52 +00:00
conf Add usie to LINT. 2013-04-26 13:03:22 +00:00
contrib Bring over my FreeBSD modifications for the AR9300 HAL to make it 2013-04-28 00:57:47 +00:00
crypto When porting XTS-related code from OpenBSD I forgot to update copyright (only 2013-02-20 22:59:53 +00:00
ddb
dev Let's align correctly by setting to 17. 2013-04-28 16:35:23 +00:00
fs Rework the handling of the tmpfs node backing swap object and tmpfs 2013-04-28 19:38:59 +00:00
gdb
geom Return "descr" field alike to "Intel RAID1 volume" for GEOM RAID to make 2013-04-27 06:57:39 +00:00
gnu/fs/reiserfs Garbage collect XFS bits which are now already completely disconnected 2013-03-02 15:33:54 +00:00
i386 Remove redundant definitions of _ALIGN and _ALIGNBYTES. 2013-04-21 11:12:44 +00:00
ia64 Remove ctl(4) from GENERIC. Also remove 'options CTL_DISABLE' 2013-04-12 16:25:03 +00:00
isa
kern Eliminate the layering violation in the kern_sendfile(). When quering 2013-04-28 19:12:09 +00:00
kgssapi Piete.Brooks at cl.cam.ac.uk reported via email a crash which was 2012-12-18 00:25:48 +00:00
libkern Attempt to mitigate poor initialization of arc4 by one-shot 2013-04-19 00:30:52 +00:00
mips Octeon 2 (6xxx) and newer CPUs don't use the clock CPU speed for its 2013-04-26 05:42:35 +00:00
modules Build uart_dev_lpc.c on arm only. This fixes pc98 build. 2013-04-22 13:02:41 +00:00
net Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
net80211 Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netatalk Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netgraph Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netinet Move IPPROTO_IPV6 from #ifdef __BSD_VISIBLE to #if __POSIX_VISIBLE >= 201112 2013-04-27 23:36:01 +00:00
netinet6 Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netipsec Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
netipx Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netnatm Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netpfil Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netsmb Call make_dev_credf() rather than using the couple make_dev()/dev_ref(). 2013-03-09 16:58:19 +00:00
nfs Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nfsclient When an NFS unmount occurs, once vflush() writes the last dirty 2013-04-18 23:20:16 +00:00
nfsserver Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nlm
ofed Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-27 08:11:48 +00:00
opencrypto When porting XTS-related code from OpenBSD I forgot to update copyright (only 2013-02-20 22:59:53 +00:00
pc98 - Correct mispellings of word resource 2013-04-17 11:47:32 +00:00
pci - Corrrect mispellings of word useful 2013-04-17 11:45:15 +00:00
powerpc Add reset support to the Wii. 2013-04-27 06:54:49 +00:00
rpc Fix a potential socket leak in the NFS server. If a client closes its 2013-04-08 19:03:01 +00:00
security Switch the vm_object mutex to be a rwlock. This will enable in the 2013-03-09 02:32:23 +00:00
sparc64 Remove ctl(4) from GENERIC. Also remove 'options CTL_DISABLE' 2013-04-12 16:25:03 +00:00
sys Bump FreeBSD_version after glebius' changes. 2013-04-26 17:06:36 +00:00
teken
tools Further refine the handling of stop signals in the NFS client. The 2013-02-21 19:02:50 +00:00
ufs - Correct mispellings of the word occurrence 2013-04-17 11:40:10 +00:00
vm Rework the handling of the tmpfs node backing swap object and tmpfs 2013-04-28 19:38:59 +00:00
x86 Introduce kern.timecounter.smp_tsc_adjust tunable (disabled by default) and 2013-04-18 17:07:04 +00:00
xdr Use m_get() and m_getcl() instead of compat macros. 2013-03-15 10:21:18 +00:00
xen
Makefile Remove netncp cscope entry missed in r248097 2013-03-12 14:21:52 +00:00