mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
constify path_get/path_put and fs_struct.c stuff
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
26567cdbbf
commit
dcf787f391
5 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue