diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-01 23:51:07 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-01 23:51:07 -0500 |
commit | dcf787f39162ce32ca325b3e784aba2d2444619a (patch) | |
tree | 0c9ca31625ed193558758aba2df9e127b2abd81b /fs/fs_struct.c | |
parent | 26567cdbbf1a6b13a92a82332daee00672aa48a9 (diff) | |
download | op-kernel-dev-dcf787f39162ce32ca325b3e784aba2d2444619a.zip op-kernel-dev-dcf787f39162ce32ca325b3e784aba2d2444619a.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fs_struct.c b/fs/fs_struct.c index fe6ca58..d8ac61d 100644 --- a/fs/fs_struct.c +++ b/fs/fs_struct.c @@ -10,7 +10,7 @@ * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values. * It can block. */ -void set_fs_root(struct fs_struct *fs, struct path *path) +void set_fs_root(struct fs_struct *fs, const struct path *path) { struct path old_root; @@ -29,7 +29,7 @@ void set_fs_root(struct fs_struct *fs, struct path *path) * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values. * It can block. */ -void set_fs_pwd(struct fs_struct *fs, struct path *path) +void set_fs_pwd(struct fs_struct *fs, const struct path *path) { struct path old_pwd; @@ -53,7 +53,7 @@ static inline int replace_path(struct path *p, const struct path *old, const str return 1; } -void chroot_fs_refs(struct path *old_root, struct path *new_root) +void chroot_fs_refs(const struct path *old_root, const struct path *new_root) { struct task_struct *g, *p; struct fs_struct *fs; |