file_inode(f)->i_mapping is f->f_mapping
[linux-2.6-block.git] / drivers / gpu / drm / drm_gem.c
index 32156060b9c96bb9ccfe0c0b06dc5057a0160fb6..ad89db36ca256dbe73e7c5b3e04ce42ad03e141c 100644 (file)
@@ -511,7 +511,7 @@ struct page **drm_gem_get_pages(struct drm_gem_object *obj)
        int i, npages;
 
        /* This is the shared memory object that backs the GEM resource */
-       mapping = file_inode(obj->filp)->i_mapping;
+       mapping = obj->filp->f_mapping;
 
        /* We already BUG_ON() for non-page-aligned sizes in
         * drm_gem_object_init(), so we should never hit this unless