From: Al Viro Date: Sun, 6 Jul 2025 21:09:39 +0000 (-0400) Subject: do_set_group(): constify path arguments X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6e024a0e280e1ce3c18579b73735cf78bb7f1ead;p=users%2Fhch%2Fmisc.git do_set_group(): constify path arguments Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/namespace.c b/fs/namespace.c index 5d5482a82b4d..62cffd3b6de2 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -3353,7 +3353,7 @@ static inline int tree_contains_unbindable(struct mount *mnt) return 0; } -static int do_set_group(struct path *from_path, struct path *to_path) +static int do_set_group(const struct path *from_path, const struct path *to_path) { struct mount *from = real_mount(from_path->mnt); struct mount *to = real_mount(to_path->mnt);