summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-10-17 20:03:26 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-10-17 20:03:26 +0200
commitc34faf224b959bf61e4c3eb29c66a12edbd31841 (patch)
treeaefcfbfd8626c661b48f869267cc039c45492f59 /linux-core/drm_compat.c
parent89b944179856fadf8667587eff142129c2c6b826 (diff)
Remove max number of locked pages check and call, since
that is now handled by the memory accounting.
Diffstat (limited to 'linux-core/drm_compat.c')
-rw-r--r--linux-core/drm_compat.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/linux-core/drm_compat.c b/linux-core/drm_compat.c
index 4a035f49..90e53419 100644
--- a/linux-core/drm_compat.c
+++ b/linux-core/drm_compat.c
@@ -234,11 +234,6 @@ struct page *drm_vm_ttm_nopage(struct vm_area_struct *vma,
page = ttm->pages[page_offset];
if (!page) {
- if (bm->cur_pages >= bm->max_pages) {
- DRM_ERROR("Maximum locked page count exceeded\n");
- page = NOPAGE_OOM;
- goto out;
- }
if (drm_alloc_memctl(PAGE_SIZE)) {
page = NOPAGE_OOM;
goto out;