From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: drm/ttm: Extract code for attempting allocation in a place Date: Sat, 14 Mar 2026 07:10:16 +1000 Message-ID: In-Reply-To: <20260313-dmemcg-aggressive-protect-v6-3-7c71cc1492db@gmx.de> References: <20260313-dmemcg-aggressive-protect-v6-0-7c71cc1492db@gmx.de> <20260313-dmemcg-aggressive-protect-v6-3-7c71cc1492db@gmx.de> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Patch Review Clean refactoring that extracts `ttm_bo_alloc_at_place()` and introduces `s= truct ttm_bo_alloc_state`. The `limit_pool` is moved from `ttm_bo_evict_wal= k` into `ttm_bo_alloc_state`, and `ttm_bo_evict_walk` gets a pointer to the= alloc_state. The error handling mapping is preserved correctly: - `-EAGAIN` (charge fail) =E2=86=92 `-EBUSY` if eviction possible, `-ENOSPC= ` otherwise - `-ENOSPC` (alloc fail) + `may_evict` =E2=86=92 `-EBUSY` Reviewed-by from Tvrtko. Looks good, no functional change intended and none= introduced. --- Generated by Claude Code Patch Reviewer