Lines Matching refs:fs
88 struct fs_struct *fs; in proc_cwd_link() local
91 fs = inode->u.proc_i.task->fs; in proc_cwd_link()
92 if(fs) in proc_cwd_link()
93 atomic_inc(&fs->count); in proc_cwd_link()
95 if (fs) { in proc_cwd_link()
96 read_lock(&fs->lock); in proc_cwd_link()
97 *mnt = mntget(fs->pwdmnt); in proc_cwd_link()
98 *dentry = dget(fs->pwd); in proc_cwd_link()
99 read_unlock(&fs->lock); in proc_cwd_link()
101 put_fs_struct(fs); in proc_cwd_link()
108 struct fs_struct *fs; in proc_root_link() local
111 fs = inode->u.proc_i.task->fs; in proc_root_link()
112 if(fs) in proc_root_link()
113 atomic_inc(&fs->count); in proc_root_link()
115 if (fs) { in proc_root_link()
116 read_lock(&fs->lock); in proc_root_link()
117 *mnt = mntget(fs->rootmnt); in proc_root_link()
118 *dentry = dget(fs->root); in proc_root_link()
119 read_unlock(&fs->lock); in proc_root_link()
121 put_fs_struct(fs); in proc_root_link()
236 read_lock(¤t->fs->lock); in proc_check_root()
237 our_vfsmnt = mntget(current->fs->rootmnt); in proc_check_root()
238 base = dget(current->fs->root); in proc_check_root()
239 read_unlock(¤t->fs->lock); in proc_check_root()