summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorShuicheng Lin <shuicheng.lin@intel.com>2026-09-09 16:21:01 +0000
committerShuicheng Lin <shuicheng.lin@intel.com>2026-09-10 08:19:09 -0700
commitd7aac1a0235a6ce41e30cec385e2db8c33dad12d (patch)
treedf323f6d9274d4b73134aafa3224a61f1e1c65f3 /tools/perf/scripts/python
parentc81d8cdf29b6f13a3c50f961d997995b985f66c6 (diff)
downloadlinux-d7aac1a0235a6ce41e30cec385e2db8c33dad12d.tar.gz
linux-d7aac1a0235a6ce41e30cec385e2db8c33dad12d.zip
drm/xe/shrinker: Return the freed page count through a parameter
__xe_shrinker_walk() and xe_shrinker_walk() return either the number of pages freed or a negative error, so the two cannot be reported at once. On error the pages already freed are dropped, and since xe_shrinker_scan() only accumulates non-negative returns while *scanned is updated by pointer, the shrinker tells mm that it scanned without freeing. Accumulate the count into a caller-provided counter and return only the status, so an error no longer discards what the walk had freed. Fixes: 00c8efc3180f ("drm/xe: Add a shrinker for xe bos") Assisted-by: Claude:claude-opus-5 Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20260909162102.1097006-2-shuicheng.lin@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions