diff options
author | alc <alc@FreeBSD.org> | 1999-08-01 06:05:09 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-08-01 06:05:09 +0000 |
commit | 33da09bf48e594f4f9734da60181acb8ed7c0cd5 (patch) | |
tree | 88788c7d46d119c494704045a78e93d4fb700784 /sys/ufs/ufs | |
parent | 319a1b1319cc5fec318be743854f484bc984b132 (diff) | |
download | FreeBSD-src-33da09bf48e594f4f9734da60181acb8ed7c0cd5.zip FreeBSD-src-33da09bf48e594f4f9734da60181acb8ed7c0cd5.tar.gz |
Move the memory access behavior information provided by madvise
from the vm_object to the vm_map.
Submitted by: dillon
Diffstat (limited to 'sys/ufs/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_readwrite.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c index 81a84bb..3fc8c46 100644 --- a/sys/ufs/ufs/ufs_readwrite.c +++ b/sys/ufs/ufs/ufs_readwrite.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ufs_readwrite.c 8.11 (Berkeley) 5/8/95 - * $Id: ufs_readwrite.c,v 1.60 1999/07/13 18:20:12 mckusick Exp $ + * $Id: ufs_readwrite.c,v 1.61 1999/07/25 02:07:16 bde Exp $ */ #define BLKSIZE(a, b, c) blksize(a, b, c) @@ -591,10 +591,9 @@ ffs_getpages(ap) if (firstindex == 0) vp->v_lastr = 0; - if (((obj->behavior != OBJ_RANDOM) && - (firstindex != 0) && (firstindex <= vp->v_lastr) && - ((firstindex + pcount) > vp->v_lastr)) || - (obj->behavior == OBJ_SEQUENTIAL)) { + if ((firstindex != 0) && + (firstindex <= vp->v_lastr) && + ((firstindex + pcount) > vp->v_lastr)) { struct uio auio; struct iovec aiov; |