switch file_open_root() to struct path
... and provide file_open_root_mnt(), using the root of given mount. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -1806,7 +1806,7 @@ static int process_sysctl_arg(char *param, char *val,
|
||||
panic("%s: Failed to allocate path for %s\n", __func__, param);
|
||||
strreplace(path, '.', '/');
|
||||
|
||||
file = file_open_root((*proc_mnt)->mnt_root, *proc_mnt, path, O_WRONLY, 0);
|
||||
file = file_open_root_mnt(*proc_mnt, path, O_WRONLY, 0);
|
||||
if (IS_ERR(file)) {
|
||||
err = PTR_ERR(file);
|
||||
if (err == -ENOENT)
|
||||
|
||||
Reference in New Issue
Block a user