Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Don't try to do readahead on tmpfs.



details:   https://anonhg.NetBSD.org/src/rev/3009ce8d5fc3
branches:  trunk
changeset: 933152:3009ce8d5fc3
user:      ad <ad%NetBSD.org@localhost>
date:      Tue May 19 21:45:57 2020 +0000

description:
Don't try to do readahead on tmpfs.

diffstat:

 sys/uvm/uvm_vnode.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cd6f2af882ef -r 3009ce8d5fc3 sys/uvm/uvm_vnode.c
--- a/sys/uvm/uvm_vnode.c       Tue May 19 21:45:35 2020 +0000
+++ b/sys/uvm/uvm_vnode.c       Tue May 19 21:45:57 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_vnode.c,v 1.111 2020/03/22 18:32:42 ad Exp $       */
+/*     $NetBSD: uvm_vnode.c,v 1.112 2020/05/19 21:45:57 ad Exp $       */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_vnode.c,v 1.111 2020/03/22 18:32:42 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_vnode.c,v 1.112 2020/05/19 21:45:57 ad Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_uvmhist.h"
@@ -182,7 +182,7 @@
            0, 0);
 
        if (vp->v_type == VREG && (access_type & VM_PROT_WRITE) == 0
-           && (flags & PGO_LOCKED) == 0) {
+           && (flags & PGO_LOCKED) == 0 && vp->v_tag != VT_TMPFS) {
                uvn_alloc_ractx(uobj);
                uvm_ra_request(vp->v_ractx, advice, uobj, offset,
                    *npagesp << PAGE_SHIFT);



Home | Main Index | Thread Index | Old Index