projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ba1c9
)
drm/v3d: Drop allocation of object without mountpoint
author
Matthias Brugger
<matthias.bgg@gmail.com>
Tue, 29 Oct 2024 11:24:29 +0000
(12:24 +0100)
committer
Maíra Canal
<mcanal@igalia.com>
Wed, 30 Oct 2024 13:21:05 +0000
(10:21 -0300)
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
drivers/gpu/drm/v3d/v3d_bo.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/v3d/v3d_bo.c
b/drivers/gpu/drm/v3d/v3d_bo.c
index
7055f7c
..
73ab7dd
100644
(file)
--- a/
drivers/gpu/drm/v3d/v3d_bo.c
+++ b/
drivers/gpu/drm/v3d/v3d_bo.c
@@
-157,13
+157,8
@@
struct v3d_bo *v3d_bo_create(struct drm_device *dev, struct drm_file *file_priv,
struct v3d_bo *bo;
int ret;
- /* Let the user opt out of allocating the BOs with THP */
- if (v3d->gemfs)
- shmem_obj = drm_gem_shmem_create_with_mnt(dev, unaligned_size,
- v3d->gemfs);
- else
- shmem_obj = drm_gem_shmem_create(dev, unaligned_size);
-
+ shmem_obj = drm_gem_shmem_create_with_mnt(dev, unaligned_size,
+ v3d->gemfs);
if (IS_ERR(shmem_obj))
return ERR_CAST(shmem_obj);
bo = to_v3d_bo(&shmem_obj->base);