Subversion Repositories Kolibri OS

Rev

Rev 5271 | Rev 6088 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5271 Rev 6084
Line 460... Line 460...
460
		/* Make sure shmem keeps __GFP_DMA32 allocated pages in the
460
		/* Make sure shmem keeps __GFP_DMA32 allocated pages in the
461
		 * correct region during swapin. Note that this requires
461
		 * correct region during swapin. Note that this requires
462
		 * __GFP_DMA32 to be set in mapping_gfp_mask(inode->i_mapping)
462
		 * __GFP_DMA32 to be set in mapping_gfp_mask(inode->i_mapping)
463
		 * so shmem can relocate pages during swapin if required.
463
		 * so shmem can relocate pages during swapin if required.
464
		 */
464
		 */
465
		BUG_ON((mapping_gfp_mask(mapping) & __GFP_DMA32) &&
465
		BUG_ON(mapping_gfp_constraint(mapping, __GFP_DMA32) &&
466
				(page_to_pfn(p) >= 0x00100000UL));
466
				(page_to_pfn(p) >= 0x00100000UL));
467
	}
467
	}
Line 468... Line 468...
468
 
468
 
Line 731... Line 731...
731
 * Frees the object
731
 * Frees the object
732
 */
732
 */
733
void
733
void
734
drm_gem_object_free(struct kref *kref)
734
drm_gem_object_free(struct kref *kref)
735
{
735
{
-
 
736
	struct drm_gem_object *obj =
736
	struct drm_gem_object *obj = (struct drm_gem_object *) kref;
737
		container_of(kref, struct drm_gem_object, refcount);
737
	struct drm_device *dev = obj->dev;
738
	struct drm_device *dev = obj->dev;
Line 738... Line 739...
738
 
739
 
Line 739... Line 740...
739
	BUG_ON(!mutex_is_locked(&dev->struct_mutex));
740
	WARN_ON(!mutex_is_locked(&dev->struct_mutex));
740
 
741
 
741
	if (dev->driver->gem_free_object != NULL)
742
	if (dev->driver->gem_free_object != NULL)
742
		dev->driver->gem_free_object(obj);
743
		dev->driver->gem_free_object(obj);