aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fs_struct.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-01 23:51:07 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2013-03-01 23:51:07 -0500
commitdcf787f39162ce32ca325b3e784aba2d2444619a (patch)
tree0c9ca31625ed193558758aba2df9e127b2abd81b /fs/fs_struct.c
parent26567cdbbf1a6b13a92a82332daee00672aa48a9 (diff)
constify path_get/path_put and fs_struct.c stuff
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fs_struct.c')
-rw-r--r--fs/fs_struct.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fs_struct.c b/fs/fs_struct.c
index fe6ca583bbc0..d8ac61d0c932 100644
--- a/fs/fs_struct.c
+++ b/fs/fs_struct.c
@@ -10,7 +10,7 @@
10 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values. 10 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values.
11 * It can block. 11 * It can block.
12 */ 12 */
13void set_fs_root(struct fs_struct *fs, struct path *path) 13void set_fs_root(struct fs_struct *fs, const struct path *path)
14{ 14{
15 struct path old_root; 15 struct path old_root;
16 16
@@ -29,7 +29,7 @@ void set_fs_root(struct fs_struct *fs, struct path *path)
29 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values. 29 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values.
30 * It can block. 30 * It can block.
31 */ 31 */
32void set_fs_pwd(struct fs_struct *fs, struct path *path) 32void set_fs_pwd(struct fs_struct *fs, const struct path *path)
33{ 33{
34 struct path old_pwd; 34 struct path old_pwd;
35 35
@@ -53,7 +53,7 @@ static inline int replace_path(struct path *p, const struct path *old, const str
53 return 1; 53 return 1;
54} 54}
55 55
56void chroot_fs_refs(struct path *old_root, struct path *new_root) 56void chroot_fs_refs(const struct path *old_root, const struct path *new_root)
57{ 57{
58 struct task_struct *g, *p; 58 struct task_struct *g, *p;
59 struct fs_struct *fs; 59 struct fs_struct *fs;