Merge branch 'cpus4096-for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / include / linux / fs_struct.h
1 #ifndef _LINUX_FS_STRUCT_H
2 #define _LINUX_FS_STRUCT_H
3
4 #include <linux/path.h>
5
6 struct fs_struct {
7         atomic_t count;
8         rwlock_t lock;
9         int umask;
10         struct path root, pwd;
11 };
12
13 extern struct kmem_cache *fs_cachep;
14
15 extern void exit_fs(struct task_struct *);
16 extern void set_fs_root(struct fs_struct *, struct path *);
17 extern void set_fs_pwd(struct fs_struct *, struct path *);
18 extern struct fs_struct *copy_fs_struct(struct fs_struct *);
19 extern void put_fs_struct(struct fs_struct *);
20
21 #endif /* _LINUX_FS_STRUCT_H */