mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
may_copy_tree(), __do_loopback(): constify struct path argument
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
8ec7ee2e0b
commit
4f4b18af4c
|
|
@ -2984,7 +2984,7 @@ static int do_change_type(const struct path *path, int ms_flags)
|
|||
*
|
||||
* Returns true if the mount tree can be copied, false otherwise.
|
||||
*/
|
||||
static inline bool may_copy_tree(struct path *path)
|
||||
static inline bool may_copy_tree(const struct path *path)
|
||||
{
|
||||
struct mount *mnt = real_mount(path->mnt);
|
||||
const struct dentry_operations *d_op;
|
||||
|
|
@ -3006,7 +3006,7 @@ static inline bool may_copy_tree(struct path *path)
|
|||
}
|
||||
|
||||
|
||||
static struct mount *__do_loopback(struct path *old_path, int recurse)
|
||||
static struct mount *__do_loopback(const struct path *old_path, int recurse)
|
||||
{
|
||||
struct mount *old = real_mount(old_path->mnt);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user