drm/i915/gem: Really implement i915_gem_object_invalidate()
authorFrançois Tigeot <ftigeot@wolfpond.org>
Mon, 7 Jan 2019 20:14:50 +0000 (21:14 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Mon, 7 Jan 2019 20:14:50 +0000 (21:14 +0100)
sys/dev/drm/i915/i915_gem.c

index 54751fc..b3a1534 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/slab.h>
 #include <linux/swap.h>
 #include <linux/pci.h>
+#include <linux/dma-buf.h>
 
 #include <sys/mman.h>
 #include <vm/vm_map.h>
@@ -2302,8 +2303,8 @@ i915_gem_object_invalidate(struct drm_i915_gem_object *obj)
 
 #if 0
        mapping = file_inode(obj->base.filp)->i_mapping,
-       invalidate_mapping_pages(mapping, 0, (loff_t)-1);
 #endif
+       invalidate_mapping_pages(obj->base.filp, 0, (loff_t)-1);
 }
 
 static void