Skip to content

Commit e9d9eb7

Browse files
mbggpopcornmix
authored andcommitted
drm/v3d: Drop allocation of object without mountpoint
Commit d28292a upstream Function drm_gem_shmem_create_with_mnt() creates an object without using the mountpoint if gemfs is NULL. Drop the else branch calling drm_gem_shmem_create(). Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Maíra Canal <mcanal@igalia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241029-v3d-v2-1-c0d3dd328d1b@gmail.com
1 parent 89e5d6e commit e9d9eb7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

drivers/gpu/drm/v3d/v3d_bo.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,8 @@ struct v3d_bo *v3d_bo_create(struct drm_device *dev, struct drm_file *file_priv,
157157
struct v3d_bo *bo;
158158
int ret;
159159

160-
/* Let the user opt out of allocating the BOs with THP */
161-
if (v3d->gemfs)
162-
shmem_obj = drm_gem_shmem_create_with_mnt(dev, unaligned_size,
163-
v3d->gemfs);
164-
else
165-
shmem_obj = drm_gem_shmem_create(dev, unaligned_size);
166-
160+
shmem_obj = drm_gem_shmem_create_with_mnt(dev, unaligned_size,
161+
v3d->gemfs);
167162
if (IS_ERR(shmem_obj))
168163
return ERR_CAST(shmem_obj);
169164
bo = to_v3d_bo(&shmem_obj->base);

0 commit comments

Comments
 (0)