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
committerRodrigo Vivi <rodrigo.vivi@intel.com>2026-09-14 09:09:01 -0400
commit3c90e42a01426262f0cd166bc01b45c05562640d (patch)
treede4df35dad8fed333852fc80d4f6aec0f6083b8c /tools/perf/scripts/python
parentd0c09528781938362655d9c336364e777119bd6b (diff)
downloadlinux-next-3c90e42a01426262f0cd166bc01b45c05562640d.tar.gz
linux-next-3c90e42a01426262f0cd166bc01b45c05562640d.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> (cherry picked from commit d7aac1a0235a6ce41e30cec385e2db8c33dad12d) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions