aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs_struct.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-09-12 13:12:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-12 13:12:47 -0400
commit5762482f5496cb1dd86acd2aace3ea25d1404e1f (patch)
tree6d74d7b501002f7516e2eb3068f5a942f63098ee /include/linux/fs_struct.h
parentb7c09ad4014e3678e8cc01fdf663c9f43b272dc6 (diff)
vfs: move get_fs_root_and_pwd() to single caller
Let's not pollute the include files with inline functions that are only used in a single place. Especially not if we decide we might want to change the semantics of said function to make it more efficient.. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/fs_struct.h')
-rw-r--r--include/linux/fs_struct.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/fs_struct.h b/include/linux/fs_struct.h
index 2b93a9a5a1e6..0efc3e62843a 100644
--- a/include/linux/fs_struct.h
+++ b/include/linux/fs_struct.h
@@ -39,17 +39,6 @@ static inline void get_fs_pwd(struct fs_struct *fs, struct path *pwd)
39 spin_unlock(&fs->lock); 39 spin_unlock(&fs->lock);
40} 40}
41 41
42static inline void get_fs_root_and_pwd(struct fs_struct *fs, struct path *root,
43 struct path *pwd)
44{
45 spin_lock(&fs->lock);
46 *root = fs->root;
47 path_get(root);
48 *pwd = fs->pwd;
49 path_get(pwd);
50 spin_unlock(&fs->lock);
51}
52
53extern bool current_chrooted(void); 42extern bool current_chrooted(void);
54 43
55#endif /* _LINUX_FS_STRUCT_H */ 44#endif /* _LINUX_FS_STRUCT_H */