diff options
author | ps <ps@FreeBSD.org> | 2004-12-10 03:27:12 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2004-12-10 03:27:12 +0000 |
commit | f46c52047f3fcd319847f2c25bb66800bb5d6b2d (patch) | |
tree | f9c631fca29de61464b46ce9d29d3fe6c3db1b04 /sys/nfsclient/nfs_vnops.c | |
parent | f1047725903546a5213ec64e66e804876ad8f471 (diff) | |
download | FreeBSD-src-f46c52047f3fcd319847f2c25bb66800bb5d6b2d.zip FreeBSD-src-f46c52047f3fcd319847f2c25bb66800bb5d6b2d.tar.gz |
Store a hint in the nfsnode to detect sequential access of the file.
Kick off a readahead only when sequential access is detected. This
eliminates wasteful readaheads in random file access.
Submitted by: Mohan Srinivasan mohans at yahoo-inc dot com
Obtained from: Yahoo!
Diffstat (limited to 'sys/nfsclient/nfs_vnops.c')
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 68f63fd..d7f9330 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -434,6 +434,7 @@ nfs_open(struct vop_open_args *ap) np->n_mtime = vattr.va_mtime; } } + np->ra_expect_lbn = 0; return (0); } |