From f91c433a5c1240b5ad48d2cb8b69d38453b63e00 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 24 Aug 2025 14:24:59 -0400 Subject: [PATCH] path_umount(): constify struct path argument Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- fs/internal.h | 2 +- fs/namespace.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/internal.h b/fs/internal.h index fe88563b48221..549e6bd453b01 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -86,7 +86,7 @@ extern bool may_mount(void); int path_mount(const char *dev_name, const struct path *path, const char *type_page, unsigned long flags, void *data_page); -int path_umount(struct path *path, int flags); +int path_umount(const struct path *path, int flags); int show_path(struct seq_file *m, struct dentry *root); diff --git a/fs/namespace.c b/fs/namespace.c index e09688d63dacf..0b351af533001 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -2084,7 +2084,7 @@ static int can_umount(const struct path *path, int flags) } // caller is responsible for flags being sane -int path_umount(struct path *path, int flags) +int path_umount(const struct path *path, int flags) { struct mount *mnt = real_mount(path->mnt); int ret; -- 2.47.3