]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 230782,237274:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Aug 2012 18:45:20 +0000 (18:45 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Aug 2012 18:45:20 +0000 (18:45 +0000)
commitf0c65acf95cef3111514bdfbd0345b36b31f709d
treec07005b2fb62d2bffc546d18b799feb48e8f0dd3
parentaf02f70b37e57dcf40c35e80074f68d9e23764cf
MFC 230782,237274:
Refine the implementation of POSIX_FADV_NOREUSE to perform
POSIX_FADV_DONTNEED requests on the currently accessed portion of the
file on each read(2) or write(2) rather than using direct I/O.  This
gives much better performance including read-ahead and write clustering
similar to normal read(2) and write(2) calls.

If subsequent read(2) and write(2) calls are sequential, then the
POSIX_FADV_DONTNEED requests will cover the entire sequentially-accessed
range.

git-svn-id: svn://svn.freebsd.org/base/stable/8@239788 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/posix_fadvise.2
sys/kern/vfs_syscalls.c
sys/kern/vfs_vnops.c
sys/sys/file.h