Skip to content

Commit 17d44b4

Browse files
author
Al Viro
committed
do_new_mount{,_fc}(): constify struct path argument
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 27e4b78 commit 17d44b4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

fs/namespace.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3698,7 +3698,7 @@ static bool mount_too_revealing(const struct super_block *sb, int *new_mnt_flags
36983698
* Create a new mount using a superblock configuration and request it
36993699
* be added to the namespace tree.
37003700
*/
3701-
static int do_new_mount_fc(struct fs_context *fc, struct path *mountpoint,
3701+
static int do_new_mount_fc(struct fs_context *fc, const struct path *mountpoint,
37023702
unsigned int mnt_flags)
37033703
{
37043704
struct super_block *sb;
@@ -3729,8 +3729,9 @@ static int do_new_mount_fc(struct fs_context *fc, struct path *mountpoint,
37293729
* create a new mount for userspace and request it to be added into the
37303730
* namespace's tree
37313731
*/
3732-
static int do_new_mount(struct path *path, const char *fstype, int sb_flags,
3733-
int mnt_flags, const char *name, void *data)
3732+
static int do_new_mount(const struct path *path, const char *fstype,
3733+
int sb_flags, int mnt_flags,
3734+
const char *name, void *data)
37343735
{
37353736
struct file_system_type *type;
37363737
struct fs_context *fc;

0 commit comments

Comments
 (0)