sg_pager.c (7757a1b4dc60696d9a95137ee0a2accd4ee680f4) sg_pager.c (e735691b613c2ac4aed254ffefeef429c91c2e0d)
1/*-
2 * Copyright (c) 2009 Hudson River Trading LLC
3 * Written by: John H. Baldwin <jhb@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

125 */
126 while ((m = TAILQ_FIRST(&object->un_pager.sgp.sgp_pglist)) != 0) {
127 TAILQ_REMOVE(&object->un_pager.sgp.sgp_pglist, m, plinks.q);
128 vm_page_putfake(m);
129 }
130
131 sg = object->handle;
132 sglist_free(sg);
1/*-
2 * Copyright (c) 2009 Hudson River Trading LLC
3 * Written by: John H. Baldwin <jhb@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

125 */
126 while ((m = TAILQ_FIRST(&object->un_pager.sgp.sgp_pglist)) != 0) {
127 TAILQ_REMOVE(&object->un_pager.sgp.sgp_pglist, m, plinks.q);
128 vm_page_putfake(m);
129 }
130
131 sg = object->handle;
132 sglist_free(sg);
133 object->handle = NULL;
134 object->type = OBJT_DEAD;
133}
134
135static int
136sg_pager_getpages(vm_object_t object, vm_page_t *m, int count, int reqpage)
137{
138 struct sglist *sg;
139 vm_page_t m_paddr, page;
140 vm_pindex_t offset;

--- 80 unchanged lines hidden ---
135}
136
137static int
138sg_pager_getpages(vm_object_t object, vm_page_t *m, int count, int reqpage)
139{
140 struct sglist *sg;
141 vm_page_t m_paddr, page;
142 vm_pindex_t offset;

--- 80 unchanged lines hidden ---