freebsd-dev/sys
John Baldwin cd4ecf3cd2 Further refine the implementation of POSIX_FADV_NOREUSE.
First, extend the changes in r230782 to better handle the common case
of using NOREUSE with sequential reads.  A NOREUSE file descriptor
will now track the last implicit DONTNEED request it made as a result
of a NOREUSE read.  If a subsequent NOREUSE read is adjacent to the
previous range, it will apply the DONTNEED request to the entire range
of both the previous read and the current read.  The effect is that
each read of a file accessed sequentially will apply the DONTNEED
request to the entire range that has been read.  This allows NOREUSE
to properly handle misaligned reads by flushing each buffer to cache
once it has been completely read.

Second, apply the same changes made to read(2) by r230782 and this
change to writes.  This provides much better performance in the
sequential write case as it allows writes to still be clustered.  It
also provides much better performance for misaligned writes.  It does
mean that NOREUSE will be generally ineffective for non-sequential
writes as the current implementation relies on a future NOREUSE
write's implicit DONTNEED request to flush the dirty buffer from the
current write.

MFC after:	2 weeks
2012-06-19 18:42:24 +00:00
..
amd64 Condition the implementation of pv_entry_count on PV_STATS. On amd64, 2012-06-19 08:12:44 +00:00
arm Revert the part of r236495 that introduced checking of SPI_SR_TXEMPTY 2012-06-18 20:14:42 +00:00
boot Fix ZFS boot with pre-features pools (version <= 28) broken in r236884 2012-06-13 08:00:32 +00:00
bsm
cam Remove never used CD/DA_FLAG_TAGGED_QUEUING flags. 2012-06-18 12:45:35 +00:00
cddl Introduce "feature flags" for ZFS pools (bump SPA version to 5000). 2012-06-11 11:35:22 +00:00
compat Make sure that each va_start has one and only one matching va_end, 2012-05-29 01:48:06 +00:00
conf - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
contrib - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
crypto Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
ddb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
dev Add a 'wmask' variable to hold the expression '(1ul << w->step) - 1' in 2012-06-19 16:06:27 +00:00
fs Fix the NFSv4 client for the case where mmap'd files are 2012-06-18 22:17:28 +00:00
gdb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
geom Always reconstruct partition entries in the PMBR when Boot Camp is 2012-06-14 11:17:54 +00:00
gnu/fs Fix build: 2012-05-23 06:49:50 +00:00
i386 - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
ia64 The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap 2012-06-16 18:56:19 +00:00
isa - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
kern Further refine the implementation of POSIX_FADV_NOREUSE. 2012-06-19 18:42:24 +00:00
kgssapi
libkern Fix unloading of libiconv module. 2012-06-11 17:42:39 +00:00
mips The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap 2012-06-16 18:56:19 +00:00
modules - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
net - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
net80211 Extend the radiotap code to be aware of the size of any extra vendor 2012-06-18 02:08:04 +00:00
netatalk Fix typos 2012-02-28 15:07:05 +00:00
netgraph Make radix lookup on src and dst flow addresses optional 2012-06-18 13:56:36 +00:00
netinet - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
netinet6 Pass flowid explicitly through the stack instead of taking it from 2012-06-14 06:54:48 +00:00
netipsec Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
netipx Convert all users of IF_ADDR_LOCK to use new locking macros that specify 2012-01-05 19:00:36 +00:00
netnatm
netncp Add characters mapping for codepages used in Germany. 2012-06-01 03:59:08 +00:00
netsmb When checking if file descriptor number is valid, explicitely check for 'fd' 2012-06-13 22:12:10 +00:00
nfs Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
nfsclient PR# 165923 reported intermittent write failures for dirty 2012-05-12 12:02:51 +00:00
nfsserver Honor NFSv3 commit call (RFC 1813, Section 3.3.21) where when count is 0, 2011-12-15 02:26:53 +00:00
nlm jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011 2012-01-31 02:11:05 +00:00
ofed - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
opencrypto
pc98 MFprojects/zfsd: 2012-05-24 11:20:51 +00:00
pci intpm: add ATI IXP400 pci id 2012-04-16 10:33:46 +00:00
powerpc The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap 2012-06-16 18:56:19 +00:00
rpc
security Check vplabel for NULL before dereferencing it. Fixes a panic 2012-05-03 15:51:34 +00:00
sparc64 The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap 2012-06-16 18:56:19 +00:00
sys Further refine the implementation of POSIX_FADV_NOREUSE. 2012-06-19 18:42:24 +00:00
teken
tools Make vnode_if.awk parse vnode operations with underscores, like VOP_FOO_BAR. 2012-02-21 19:35:59 +00:00
ufs In softdep_setup_inomapdep() we may have to allocate both inodedep 2012-06-11 23:07:21 +00:00
vm Do a more targeted check on the page cache and avoid to check the cache 2012-06-16 21:39:00 +00:00
x86 - Remove unused code for CR3 and CR4. 2012-06-13 22:53:56 +00:00
xdr
xen blkif interface comment cleanups. No functional changes 2012-02-29 17:47:01 +00:00
Makefile Add sys/ofed to the 'make cscope' target. 2012-03-20 18:05:15 +00:00