Lines Matching full:fsi

149 struct vfsmount *devpts_mntget(struct file *filp, struct pts_fs_info *fsi)  in devpts_mntget()  argument
166 (DEVPTS_SB(path.mnt->mnt_sb) != fsi)) in devpts_mntget()
170 if (DEVPTS_SB(path.mnt->mnt_sb) == fsi) in devpts_mntget()
212 void devpts_release(struct pts_fs_info *fsi) in devpts_release() argument
214 deactivate_super(fsi->sb); in devpts_release()
310 struct pts_fs_info *fsi = DEVPTS_SB(sb); in mknod_ptmx() local
311 struct pts_mount_opts *opts = &fsi->mount_opts; in mknod_ptmx()
318 if (fsi->ptmx_dentry) { in mknod_ptmx()
349 fsi->ptmx_dentry = dentry; in mknod_ptmx()
356 static void update_ptmx_mode(struct pts_fs_info *fsi) in update_ptmx_mode() argument
359 if (fsi->ptmx_dentry) { in update_ptmx_mode()
360 inode = d_inode(fsi->ptmx_dentry); in update_ptmx_mode()
361 inode->i_mode = S_IFCHR|fsi->mount_opts.ptmxmode; in update_ptmx_mode()
368 struct pts_fs_info *fsi = DEVPTS_SB(sb); in devpts_remount() local
369 struct pts_mount_opts *opts = &fsi->mount_opts; in devpts_remount()
379 update_ptmx_mode(fsi); in devpts_remount()
386 struct pts_fs_info *fsi = DEVPTS_SB(root->d_sb); in devpts_show_options() local
387 struct pts_mount_opts *opts = &fsi->mount_opts; in devpts_show_options()
411 struct pts_fs_info *fsi; in new_pts_fs_info() local
413 fsi = kzalloc(sizeof(struct pts_fs_info), GFP_KERNEL); in new_pts_fs_info()
414 if (!fsi) in new_pts_fs_info()
417 ida_init(&fsi->allocated_ptys); in new_pts_fs_info()
418 fsi->mount_opts.mode = DEVPTS_DEFAULT_MODE; in new_pts_fs_info()
419 fsi->mount_opts.ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; in new_pts_fs_info()
420 fsi->sb = sb; in new_pts_fs_info()
422 return fsi; in new_pts_fs_info()
491 struct pts_fs_info *fsi = DEVPTS_SB(sb); in devpts_kill_sb() local
493 if (fsi) in devpts_kill_sb()
494 ida_destroy(&fsi->allocated_ptys); in devpts_kill_sb()
495 kfree(fsi); in devpts_kill_sb()
511 int devpts_new_index(struct pts_fs_info *fsi) in devpts_new_index() argument
516 (fsi->mount_opts.reserve ? 0 : pty_reserve))) in devpts_new_index()
519 index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1, in devpts_new_index()
528 void devpts_kill_index(struct pts_fs_info *fsi, int idx) in devpts_kill_index() argument
530 ida_free(&fsi->allocated_ptys, idx); in devpts_kill_index()
536 * @fsi: Filesystem info for this instance.
543 struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv) in devpts_pty_new() argument
546 struct super_block *sb = fsi->sb; in devpts_pty_new()
553 opts = &fsi->mount_opts; in devpts_pty_new()