Lines Matching refs:fs
28 static inline void set_fs_root(struct fs_struct *fs, in set_fs_root() argument
34 write_lock(&fs->lock); in set_fs_root()
35 old_root = fs->root; in set_fs_root()
36 old_rootmnt = fs->rootmnt; in set_fs_root()
37 fs->rootmnt = mntget(mnt); in set_fs_root()
38 fs->root = dget(dentry); in set_fs_root()
39 write_unlock(&fs->lock); in set_fs_root()
51 static inline void set_fs_pwd(struct fs_struct *fs, in set_fs_pwd() argument
57 write_lock(&fs->lock); in set_fs_pwd()
58 old_pwd = fs->pwd; in set_fs_pwd()
59 old_pwdmnt = fs->pwdmnt; in set_fs_pwd()
60 fs->pwdmnt = mntget(mnt); in set_fs_pwd()
61 fs->pwd = dget(dentry); in set_fs_pwd()
62 write_unlock(&fs->lock); in set_fs_pwd()
70 void put_fs_struct(struct fs_struct *fs);