Skip to content

Commit a8be822

Browse files
author
Al Viro
committed
do_{loopback,change_type,remount,reconfigure_mnt}(): constify struct path argument
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 17d44b4 commit a8be822

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

fs/namespace.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2908,7 +2908,7 @@ static int flags_to_propagation_type(int ms_flags)
29082908
/*
29092909
* recursively change the type of the mountpoint.
29102910
*/
2911-
static int do_change_type(struct path *path, int ms_flags)
2911+
static int do_change_type(const struct path *path, int ms_flags)
29122912
{
29132913
struct mount *m;
29142914
struct mount *mnt = real_mount(path->mnt);
@@ -3028,8 +3028,8 @@ static struct mount *__do_loopback(struct path *old_path, int recurse)
30283028
/*
30293029
* do loopback mount.
30303030
*/
3031-
static int do_loopback(struct path *path, const char *old_name,
3032-
int recurse)
3031+
static int do_loopback(const struct path *path, const char *old_name,
3032+
int recurse)
30333033
{
30343034
struct path old_path __free(path_put) = {};
30353035
struct mount *mnt = NULL;
@@ -3259,7 +3259,7 @@ static void mnt_warn_timestamp_expiry(const struct path *mountpoint,
32593259
* superblock it refers to. This is triggered by specifying MS_REMOUNT|MS_BIND
32603260
* to mount(2).
32613261
*/
3262-
static int do_reconfigure_mnt(struct path *path, unsigned int mnt_flags)
3262+
static int do_reconfigure_mnt(const struct path *path, unsigned int mnt_flags)
32633263
{
32643264
struct super_block *sb = path->mnt->mnt_sb;
32653265
struct mount *mnt = real_mount(path->mnt);
@@ -3296,7 +3296,7 @@ static int do_reconfigure_mnt(struct path *path, unsigned int mnt_flags)
32963296
* If you've mounted a non-root directory somewhere and want to do remount
32973297
* on it - tough luck.
32983298
*/
3299-
static int do_remount(struct path *path, int ms_flags, int sb_flags,
3299+
static int do_remount(const struct path *path, int ms_flags, int sb_flags,
33003300
int mnt_flags, void *data)
33013301
{
33023302
int err;

0 commit comments

Comments
 (0)