Get rid of bumping fs_struct refcount in pivot_root(2)
[deliverable/linux.git] / include / linux / fs_struct.h
CommitLineData
1da177e4
LT
1#ifndef _LINUX_FS_STRUCT_H
2#define _LINUX_FS_STRUCT_H
3
6ac08c39 4#include <linux/path.h>
1da177e4
LT
5
6struct fs_struct {
795e2fe0
DH
7 atomic_t count; /* This usage count is used by check_unsafe_exec() for
8 * security checking purposes - therefore it may not be
9 * incremented, except by clone(CLONE_FS).
10 */
1da177e4
LT
11 rwlock_t lock;
12 int umask;
7f2da1e7 13 struct path root, pwd;
1da177e4
LT
14};
15
aa362a83
CL
16extern struct kmem_cache *fs_cachep;
17
1da177e4 18extern void exit_fs(struct task_struct *);
ac748a09
JB
19extern void set_fs_root(struct fs_struct *, struct path *);
20extern void set_fs_pwd(struct fs_struct *, struct path *);
1da177e4
LT
21extern struct fs_struct *copy_fs_struct(struct fs_struct *);
22extern void put_fs_struct(struct fs_struct *);
23
24#endif /* _LINUX_FS_STRUCT_H */
This page took 0.527207 seconds and 5 git commands to generate.