Unverified Commit d28292aa authored by Matthias Brugger's avatar Matthias Brugger Committed by Maíra Canal
Browse files

drm/v3d: Drop allocation of object without mountpoint



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: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: default avatarMaíra Canal <mcanal@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241029-v3d-v2-1-c0d3dd328d1b@gmail.com
parent 71ba1c9b
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -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);

	if (IS_ERR(shmem_obj))
		return ERR_CAST(shmem_obj);
	bo = to_v3d_bo(&shmem_obj->base);