svn commit: r248661 - head/sys/dev/drm2/ttm
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Sat Mar 23 20:43:27 UTC 2013
Author: dumbbell
Date: Sat Mar 23 20:43:26 2013
New Revision: 248661
URL: http://svnweb.freebsd.org/changeset/base/248661
Log:
drm/ttm: Explain why we don't need to acquire a ref in ttm_bo_vm_ctor()
Modified:
head/sys/dev/drm2/ttm/ttm_bo_vm.c
Modified: head/sys/dev/drm2/ttm/ttm_bo_vm.c
==============================================================================
--- head/sys/dev/drm2/ttm/ttm_bo_vm.c Sat Mar 23 20:17:32 2013 (r248660)
+++ head/sys/dev/drm2/ttm/ttm_bo_vm.c Sat Mar 23 20:43:26 2013 (r248661)
@@ -252,6 +252,11 @@ ttm_bo_vm_ctor(void *handle, vm_ooffset_
vm_ooffset_t foff, struct ucred *cred, u_short *color)
{
+ /*
+ * We don't acquire a reference on bo->kref here, because it was
+ * already done in ttm_bo_mmap_single().
+ */
+
*color = 0;
return (0);
}
More information about the svn-src-head
mailing list