Skip to content

Commit f91c433

Browse files
author
Al Viro
committed
path_umount(): constify struct path argument
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 4f4b18a commit f91c433

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fs/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extern bool may_mount(void);
8686

8787
int path_mount(const char *dev_name, const struct path *path,
8888
const char *type_page, unsigned long flags, void *data_page);
89-
int path_umount(struct path *path, int flags);
89+
int path_umount(const struct path *path, int flags);
9090

9191
int show_path(struct seq_file *m, struct dentry *root);
9292

fs/namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ static int can_umount(const struct path *path, int flags)
20842084
}
20852085

20862086
// caller is responsible for flags being sane
2087-
int path_umount(struct path *path, int flags)
2087+
int path_umount(const struct path *path, int flags)
20882088
{
20892089
struct mount *mnt = real_mount(path->mnt);
20902090
int ret;

0 commit comments

Comments
 (0)