Lines Matching refs:opts
165 static int tracefs_parse_options(char *data, struct tracefs_mount_opts *opts) in tracefs_parse_options() argument
174 opts->mode = TRACEFS_DEFAULT_MODE; in tracefs_parse_options()
188 opts->uid = uid; in tracefs_parse_options()
196 opts->gid = gid; in tracefs_parse_options()
201 opts->mode = option & S_IALLUGO; in tracefs_parse_options()
217 struct tracefs_mount_opts *opts = &fsi->mount_opts; in tracefs_apply_options() local
220 inode->i_mode |= opts->mode; in tracefs_apply_options()
222 inode->i_uid = opts->uid; in tracefs_apply_options()
223 inode->i_gid = opts->gid; in tracefs_apply_options()
247 struct tracefs_mount_opts *opts = &fsi->mount_opts; in tracefs_show_options() local
249 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in tracefs_show_options()
251 from_kuid_munged(&init_user_ns, opts->uid)); in tracefs_show_options()
252 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in tracefs_show_options()
254 from_kgid_munged(&init_user_ns, opts->gid)); in tracefs_show_options()
255 if (opts->mode != TRACEFS_DEFAULT_MODE) in tracefs_show_options()
256 seq_printf(m, ",mode=%o", opts->mode); in tracefs_show_options()