From: David Herrmann Date: Fri, 3 Jan 2014 13:24:19 +0000 (+0100) Subject: drm: use anon-inode instead of relying on cdevs X-Git-Tag: v3.15-rc1~51^2~52^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6796cb16c088905bf3af40548fda68c09e6f6ee5;p=pandora-kernel.git drm: use anon-inode instead of relying on cdevs DRM drivers share a common address_space across all character-devices of a single DRM device. This allows simple buffer eviction and mapping-control. However, DRM core currently waits for the first ->open() on any char-dev to mark the underlying inode as backing inode of the device. This delayed initialization causes ugly conditions all over the place: if (dev->dev_mapping) do_sth(); To avoid delayed initialization and to stop reusing the inode of the char-dev, we allocate an anonymous inode for each DRM device and reset filp->f_mapping to it on ->open(). Signed-off-by: David Herrmann --- Reading git-diff-tree failed