From: Chris Wilson Date: Fri, 4 Oct 2013 09:33:00 +0000 (+0100) Subject: drm/i915: Fix type mismatch and accounting in i915_gem_shrink X-Git-Tag: v3.13-rc1~76^2~68^2~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9973b4356096e8b040d6eba02407bccdaf101af;p=pandora-kernel.git drm/i915: Fix type mismatch and accounting in i915_gem_shrink The interface uses an unsigned long, and we can use the unsigned counter throughout our code, so do so. In the process, we notice one instance where the shrink count is based on a heuristic rather than the result, and another where we ask for too many pages to be purged. v2: nr_to_scan needs to be promoted to a long as well, so just use sc->nr_to_scan directly. Signed-off-by: Chris Wilson Cc: Daniel Vetter Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed