Skip to content

Commit ffe1b94

Browse files
Eric Sandeenbrauner
authored andcommitted
exfat: Convert to new uid/gid option parsing helpers
Convert to new uid/gid option parsing helpers Signed-off-by: Eric Sandeen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent dcffad3 commit ffe1b94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fs/exfat/super.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ static const struct constant_table exfat_param_enums[] = {
225225
};
226226

227227
static const struct fs_parameter_spec exfat_parameters[] = {
228-
fsparam_u32("uid", Opt_uid),
229-
fsparam_u32("gid", Opt_gid),
228+
fsparam_uid("uid", Opt_uid),
229+
fsparam_gid("gid", Opt_gid),
230230
fsparam_u32oct("umask", Opt_umask),
231231
fsparam_u32oct("dmask", Opt_dmask),
232232
fsparam_u32oct("fmask", Opt_fmask),
@@ -262,10 +262,10 @@ static int exfat_parse_param(struct fs_context *fc, struct fs_parameter *param)
262262

263263
switch (opt) {
264264
case Opt_uid:
265-
opts->fs_uid = make_kuid(current_user_ns(), result.uint_32);
265+
opts->fs_uid = result.uid;
266266
break;
267267
case Opt_gid:
268-
opts->fs_gid = make_kgid(current_user_ns(), result.uint_32);
268+
opts->fs_gid = result.gid;
269269
break;
270270
case Opt_umask:
271271
opts->fs_fmask = result.uint_32;

0 commit comments

Comments
 (0)