Deleted Added
full compact
vnode_pager.c (45561) vnode_pager.c (46349)
1/*
2 * Copyright (c) 1990 University of Utah.
3 * Copyright (c) 1991 The Regents of the University of California.
4 * All rights reserved.
5 * Copyright (c) 1993, 1994 John S. Dyson
6 * Copyright (c) 1995, David Greenman
7 *
8 * This code is derived from software contributed to Berkeley by

--- 24 unchanged lines hidden (view full) ---

33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 *
40 * from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91
1/*
2 * Copyright (c) 1990 University of Utah.
3 * Copyright (c) 1991 The Regents of the University of California.
4 * All rights reserved.
5 * Copyright (c) 1993, 1994 John S. Dyson
6 * Copyright (c) 1995, David Greenman
7 *
8 * This code is derived from software contributed to Berkeley by

--- 24 unchanged lines hidden (view full) ---

33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 *
40 * from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91
41 * $Id: vnode_pager.c,v 1.106 1999/04/05 19:38:29 julian Exp $
41 * $Id: vnode_pager.c,v 1.107 1999/04/10 20:52:11 dt Exp $
42 */
43
44/*
45 * Page to/from files (vnodes).
46 */
47
48/*
49 * TODO:

--- 734 unchanged lines hidden (view full) ---

784 * to zero the invalid portions of the page even
785 * though we aren't setting them valid.
786 *
787 * Currently we do not set the entire page valid,
788 * we just try to clear the piece that we couldn't
789 * read.
790 */
791 vm_page_set_validclean(mt, 0, size - tfoff);
42 */
43
44/*
45 * Page to/from files (vnodes).
46 */
47
48/*
49 * TODO:

--- 734 unchanged lines hidden (view full) ---

784 * to zero the invalid portions of the page even
785 * though we aren't setting them valid.
786 *
787 * Currently we do not set the entire page valid,
788 * we just try to clear the piece that we couldn't
789 * read.
790 */
791 vm_page_set_validclean(mt, 0, size - tfoff);
792 vm_page_zero_invalid(mt, FALSE);
792 /* handled by vm_fault now */
793 /* vm_page_zero_invalid(mt, FALSE); */
793 }
794
795 vm_page_flag_clear(mt, PG_ZERO);
796 if (i != reqpage) {
797
798 /*
799 * whether or not to leave the page activated is up in
800 * the air, but we should put the page on a page queue

--- 179 unchanged lines hidden ---
794 }
795
796 vm_page_flag_clear(mt, PG_ZERO);
797 if (i != reqpage) {
798
799 /*
800 * whether or not to leave the page activated is up in
801 * the air, but we should put the page on a page queue

--- 179 unchanged lines hidden ---