Lines Matching full:fsi
335 struct tracefs_fs_info *fsi = sb->s_fs_info; in tracefs_apply_options() local
346 if (!remount || fsi->opts & BIT(Opt_mode)) { in tracefs_apply_options()
348 tmp_mode |= fsi->mode; in tracefs_apply_options()
352 if (!remount || fsi->opts & BIT(Opt_uid)) in tracefs_apply_options()
353 inode->i_uid = fsi->uid; in tracefs_apply_options()
355 if (!remount || fsi->opts & BIT(Opt_gid)) in tracefs_apply_options()
356 inode->i_gid = fsi->gid; in tracefs_apply_options()
358 if (remount && (fsi->opts & BIT(Opt_uid) || fsi->opts & BIT(Opt_gid))) { in tracefs_apply_options()
360 update_uid = fsi->opts & BIT(Opt_uid); in tracefs_apply_options()
361 update_gid = fsi->opts & BIT(Opt_gid); in tracefs_apply_options()
367 ti->vfs_inode.i_uid = fsi->uid; in tracefs_apply_options()
372 ti->vfs_inode.i_gid = fsi->gid; in tracefs_apply_options()
407 struct tracefs_fs_info *fsi = root->d_sb->s_fs_info; in tracefs_show_options() local
409 if (!uid_eq(fsi->uid, GLOBAL_ROOT_UID)) in tracefs_show_options()
411 from_kuid_munged(&init_user_ns, fsi->uid)); in tracefs_show_options()
412 if (!gid_eq(fsi->gid, GLOBAL_ROOT_GID)) in tracefs_show_options()
414 from_kgid_munged(&init_user_ns, fsi->gid)); in tracefs_show_options()
415 if (fsi->mode != TRACEFS_DEFAULT_MODE) in tracefs_show_options()
416 seq_printf(m, ",mode=%o", fsi->mode); in tracefs_show_options()
511 struct tracefs_fs_info *fsi; in tracefs_init_fs_context() local
513 fsi = kzalloc(sizeof(struct tracefs_fs_info), GFP_KERNEL); in tracefs_init_fs_context()
514 if (!fsi) in tracefs_init_fs_context()
517 fsi->mode = TRACEFS_DEFAULT_MODE; in tracefs_init_fs_context()
519 fc->s_fs_info = fsi; in tracefs_init_fs_context()