[LTP] cpuset_memory_spread: count only the test file's page cache

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Sat Sep 5 10:07:26 CEST 2026


Hi Changwei,

On Sat, 5 Sep 2026, Changwei Zou wrote:
> cpuset_memory_spread: count only the test file's page cache

> 	for (i = 0; i < npages; i++) {
> 		if (status[i] >= 0 && status[i] < MAX_NODES)
> 			counts[status[i]]++;
> 	}

Medium: Per-page -ENOENT and -EFAULT statuses are silently omitted even
though move_pages() itself returns success, so result_check() can compute its
percentages from only a subset of DATAFILE and falsely pass. Fail on any
negative status and verify that all npages were counted.

Verdict - Needs revision

---
Note:

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer


More information about the ltp mailing list