aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/drm2
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-06-26 17:37:51 +0000
committerMark Johnston <markj@FreeBSD.org>2019-06-26 17:37:51 +0000
commit0fd977b3fa32d54b61554416363faae8a7bfaa2b (patch)
tree224a32e71fe89996fe93ab9584f9613473e1b38d /sys/dev/drm2
parent926c3367c8dd9bf69c81699618ce2a71c6fa7bc3 (diff)
downloadsrc-0fd977b3fa32d54b61554416363faae8a7bfaa2b.tar.gz
src-0fd977b3fa32d54b61554416363faae8a7bfaa2b.zip
Add a return value to vm_page_remove().
Use it to indicate whether the page may be safely freed following its removal from the object. Also change vm_page_remove() to assume that the page's object pointer is non-NULL, and have callers perform this check instead. This is a step towards an implementation of an atomic reference counter for each physical page structure. Reviewed by: alc, dougm, kib MFC after: 1 week Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D20758
Notes
Notes: svn path=/head/; revision=349432
Diffstat (limited to 'sys/dev/drm2')
-rw-r--r--sys/dev/drm2/ttm/ttm_bo_vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm2/ttm/ttm_bo_vm.c b/sys/dev/drm2/ttm/ttm_bo_vm.c
index 6f7184857ce6..43d027fc5cd9 100644
--- a/sys/dev/drm2/ttm/ttm_bo_vm.c
+++ b/sys/dev/drm2/ttm/ttm_bo_vm.c
@@ -115,7 +115,7 @@ ttm_bo_vm_fault(vm_object_t vm_obj, vm_ooffset_t offset,
vm_object_pip_add(vm_obj, 1);
if (*mres != NULL) {
vm_page_lock(*mres);
- vm_page_remove(*mres);
+ (void)vm_page_remove(*mres);
vm_page_unlock(*mres);
}
retry: