diff options
Diffstat (limited to 'include/linux/fs_struct.h')
| -rw-r--r-- | include/linux/fs_struct.h | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/fs_struct.h b/include/linux/fs_struct.h index 783b48dedb72..baf200ab5c77 100644 --- a/include/linux/fs_struct.h +++ b/include/linux/fs_struct.h @@ -8,8 +8,7 @@  struct fs_struct {  	int users; -	spinlock_t lock; -	seqcount_spinlock_t seq; +	seqlock_t seq;  	int umask;  	int in_exec;  	struct path root, pwd; @@ -26,18 +25,18 @@ extern int unshare_fs_struct(void);  static inline void get_fs_root(struct fs_struct *fs, struct path *root)  { -	spin_lock(&fs->lock); +	read_seqlock_excl(&fs->seq);  	*root = fs->root;  	path_get(root); -	spin_unlock(&fs->lock); +	read_sequnlock_excl(&fs->seq);  }  static inline void get_fs_pwd(struct fs_struct *fs, struct path *pwd)  { -	spin_lock(&fs->lock); +	read_seqlock_excl(&fs->seq);  	*pwd = fs->pwd;  	path_get(pwd); -	spin_unlock(&fs->lock); +	read_sequnlock_excl(&fs->seq);  }  extern bool current_chrooted(void);  | 
