gntdev.c (63e9755548e4feebf798686ab8bce0cdaaaf7b46) | gntdev.c (0012f373e43db2341c20329163ed2d5ad3b0f341) |
---|---|
1/*- 2 * Copyright (c) 2016 Akshay Jaggi <jaggi@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 822 unchanged lines hidden (view full) --- 831 832 if (*mres != NULL) { 833 oldm = *mres; 834 vm_page_free(oldm); 835 *mres = NULL; 836 } 837 838 vm_page_busy_acquire(page, 0); | 1/*- 2 * Copyright (c) 2016 Akshay Jaggi <jaggi@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 822 unchanged lines hidden (view full) --- 831 832 if (*mres != NULL) { 833 oldm = *mres; 834 vm_page_free(oldm); 835 *mres = NULL; 836 } 837 838 vm_page_busy_acquire(page, 0); |
839 vm_page_valid(page); |
|
839 vm_page_insert(page, object, pidx); | 840 vm_page_insert(page, object, pidx); |
840 page->valid = VM_PAGE_BITS_ALL; | |
841 *mres = page; 842 return (VM_PAGER_OK); 843} 844 845/*------------------ Grant Table Methods ------------------------------------*/ 846 847static void 848notify(struct notify_data *notify, vm_page_t page) --- 443 unchanged lines hidden --- | 841 *mres = page; 842 return (VM_PAGER_OK); 843} 844 845/*------------------ Grant Table Methods ------------------------------------*/ 846 847static void 848notify(struct notify_data *notify, vm_page_t page) --- 443 unchanged lines hidden --- |