summaryrefslogtreecommitdiffstats
path: root/sys/sys/file.h
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2015-09-30 23:06:29 +0000
committermarkj <markj@FreeBSD.org>2015-09-30 23:06:29 +0000
commit6348241c12da94254c6b2797b8b3cedaf6642db1 (patch)
tree1e2b61f35c22941061c31586e1d027222bdcbb8a /sys/sys/file.h
parentaca221db9d8ee973f5ca86a03adfddf468891409 (diff)
downloadFreeBSD-src-6348241c12da94254c6b2797b8b3cedaf6642db1.zip
FreeBSD-src-6348241c12da94254c6b2797b8b3cedaf6642db1.tar.gz
As a step towards the elimination of PG_CACHED pages, rework the handling
of POSIX_FADV_DONTNEED so that it causes the backing pages to be moved to the head of the inactive queue instead of being cached. This affects the implementation of POSIX_FADV_NOREUSE as well, since it works by applying POSIX_FADV_DONTNEED to file ranges after they have been read or written. At that point the corresponding buffers may still be dirty, so the previous implementation would coalesce successive ranges and apply POSIX_FADV_DONTNEED to the result, ensuring that pages backing the dirty buffers would eventually be cached. To preserve this behaviour in an efficient manner, this change adds a new buf flag, B_NOREUSE, which causes the pages backing a VMIO buf to be placed at the head of the inactive queue when the buf is released. POSIX_FADV_NOREUSE then works by setting this flag in bufs that underlie the specified range. Reviewed by: alc, kib Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3726
Diffstat (limited to 'sys/sys/file.h')
-rw-r--r--sys/sys/file.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/sys/file.h b/sys/sys/file.h
index cb51c27..68d33e0 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -160,8 +160,6 @@ struct fadvise_info {
int fa_advice; /* (f) FADV_* type. */
off_t fa_start; /* (f) Region start. */
off_t fa_end; /* (f) Region end. */
- off_t fa_prevstart; /* (f) Previous NOREUSE start. */
- off_t fa_prevend; /* (f) Previous NOREUSE end. */
};
struct file {
OpenPOWER on IntegriCloud