Lines Matching refs:fs
237 static inline void __put_fs_struct(struct fs_struct *fs) in __put_fs_struct() argument
240 if (atomic_dec_and_test(&fs->count)) { in __put_fs_struct()
241 dput(fs->root); in __put_fs_struct()
242 mntput(fs->rootmnt); in __put_fs_struct()
243 dput(fs->pwd); in __put_fs_struct()
244 mntput(fs->pwdmnt); in __put_fs_struct()
245 if (fs->altroot) { in __put_fs_struct()
246 dput(fs->altroot); in __put_fs_struct()
247 mntput(fs->altrootmnt); in __put_fs_struct()
249 kmem_cache_free(fs_cachep, fs); in __put_fs_struct()
253 void put_fs_struct(struct fs_struct *fs) in put_fs_struct() argument
255 __put_fs_struct(fs); in put_fs_struct()
260 struct fs_struct * fs = tsk->fs; in __exit_fs() local
262 if (fs) { in __exit_fs()
264 tsk->fs = NULL; in __exit_fs()
266 __put_fs_struct(fs); in __exit_fs()