Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 2009 14:45:07 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern uipc_cow.c src/sys/vm vm_page.c vm_page.h
Message-ID:  <200901171446.n0HEkOl3079031@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-01-17 14:45:07 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/kern             uipc_cow.c 
    sys/vm               vm_page.c vm_page.h 
  Log:
  SVN rev 187364 on 2009-01-17 14:45:07Z by kib
  
  MFC r186719:
  Extend the struct vm_page wire_count to u_int to avoid the overflow of
  the counter, that may happen when too many sendfile(2) calls are being
  executed with this vnode.
  
  To keep the size of the struct vm_page and offsets of the fields
  accessed by out-of-tree modules, swap the types and locations of the
  wire_count and cow fields. Add safety checks to detect cow overflow and
  force fallback to the normal copy code for zero-copy sockets.
  
  Revision   Changes    Path
  1.26.2.1   +5 -1      src/sys/kern/uipc_cow.c
  1.357.2.5  +5 -1      src/sys/vm/vm_page.c
  1.152.2.1  +4 -4      src/sys/vm/vm_page.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901171446.n0HEkOl3079031>