blob: a97c053d3a9ae2b9063da2b67c374be3145fd05a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _LINUX_FS_STRUCT_H
2#define _LINUX_FS_STRUCT_H
3
Jan Blunck6ac08c32008-02-14 19:34:38 -08004#include <linux/path.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
6struct fs_struct {
7 atomic_t count;
8 rwlock_t lock;
9 int umask;
Al Viro7f2da1e2008-05-10 20:44:54 -040010 struct path root, pwd;
Linus Torvalds1da177e2005-04-16 15:20:36 -070011};
12
Christoph Lameteraa362a82006-12-06 20:32:54 -080013extern struct kmem_cache *fs_cachep;
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015extern void exit_fs(struct task_struct *);
Jan Blunckac748a02008-02-14 19:34:39 -080016extern void set_fs_root(struct fs_struct *, struct path *);
17extern void set_fs_pwd(struct fs_struct *, struct path *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070018extern struct fs_struct *copy_fs_struct(struct fs_struct *);
19extern void put_fs_struct(struct fs_struct *);
20
21#endif /* _LINUX_FS_STRUCT_H */