Lines Matching refs:fsi
168 struct vfsmount *devpts_mntget(struct file *filp, struct pts_fs_info *fsi)
185 (DEVPTS_SB(path.mnt->mnt_sb) != fsi))
189 if (DEVPTS_SB(path.mnt->mnt_sb) == fsi)
231 void devpts_release(struct pts_fs_info *fsi)
233 deactivate_super(fsi->sb);
329 struct pts_fs_info *fsi = DEVPTS_SB(sb);
330 struct pts_mount_opts *opts = &fsi->mount_opts;
337 if (fsi->ptmx_dentry) {
368 fsi->ptmx_dentry = dentry;
375 static void update_ptmx_mode(struct pts_fs_info *fsi)
378 if (fsi->ptmx_dentry) {
379 inode = d_inode(fsi->ptmx_dentry);
380 inode->i_mode = S_IFCHR|fsi->mount_opts.ptmxmode;
387 struct pts_fs_info *fsi = DEVPTS_SB(sb);
388 struct pts_mount_opts *opts = &fsi->mount_opts;
398 update_ptmx_mode(fsi);
405 struct pts_fs_info *fsi = DEVPTS_SB(root->d_sb);
406 struct pts_mount_opts *opts = &fsi->mount_opts;
430 struct pts_fs_info *fsi;
432 fsi = kzalloc(sizeof(struct pts_fs_info), GFP_KERNEL);
433 if (!fsi)
436 ida_init(&fsi->allocated_ptys);
437 fsi->mount_opts.mode = DEVPTS_DEFAULT_MODE;
438 fsi->mount_opts.ptmxmode = DEVPTS_DEFAULT_PTMX_MODE;
439 fsi->sb = sb;
441 return fsi;
510 struct pts_fs_info *fsi = DEVPTS_SB(sb);
512 if (fsi)
513 ida_destroy(&fsi->allocated_ptys);
514 kfree(fsi);
530 int devpts_new_index(struct pts_fs_info *fsi)
535 (fsi->mount_opts.reserve ? 0 : pty_reserve)))
538 index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1,
547 void devpts_kill_index(struct pts_fs_info *fsi, int idx)
549 ida_free(&fsi->allocated_ptys, idx);
562 struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv)
565 struct super_block *sb = fsi->sb;
572 opts = &fsi->mount_opts;