Re: [PATCH v3 03/10] drm/gem: Add huge tmpfs mount point helper

From: Al Viro

Date: Sat Oct 04 2025 - 16:34:29 EST


On Sat, Oct 04, 2025 at 11:30:46AM +0200, Loïc Molinari wrote:

> +static int drm_gem_add_fc_param(struct fs_context *fc, const char *key,
> + const char *value)
> +{
> + return vfs_parse_fs_string(fc, key, value, strlen(value));
> +}

Documentation/filesystems/porting.rst:

**mandatory**

Calling conventions for vfs_parse_fs_string() have changed; it does *not*
take length anymore (value ? strlen(value) : 0 is used). If you want
a different length, use

vfs_parse_fs_qstr(fc, key, &QSTR_LEN(value, len))

instead.

IOW, your drm_gem_add_fc_param(fc, key, value) is an exact equivalent
of vfs_parse_fs_string(fc, key, value) now.