mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
vfs: switch pnode.h macros to struct mount *
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
863d684f94
commit
fc7be130c7
3 changed files with 29 additions and 29 deletions
|
@ -82,7 +82,7 @@ static int do_make_slave(struct mount *mnt)
|
|||
if (peer_mnt == mnt)
|
||||
peer_mnt = NULL;
|
||||
}
|
||||
if (IS_MNT_SHARED(&mnt->mnt) && list_empty(&mnt->mnt_share))
|
||||
if (IS_MNT_SHARED(mnt) && list_empty(&mnt->mnt_share))
|
||||
mnt_release_group_id(mnt);
|
||||
|
||||
list_del_init(&mnt->mnt_share);
|
||||
|
@ -107,7 +107,7 @@ static int do_make_slave(struct mount *mnt)
|
|||
}
|
||||
}
|
||||
mnt->mnt_master = master;
|
||||
CLEAR_MNT_SHARED(&mnt->mnt);
|
||||
CLEAR_MNT_SHARED(mnt);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -199,7 +199,7 @@ static struct mount *get_source(struct mount *dest,
|
|||
/* slave of the earlier, then */
|
||||
*type = CL_SLAVE;
|
||||
/* beginning of peer group among the slaves? */
|
||||
if (IS_MNT_SHARED(&dest->mnt))
|
||||
if (IS_MNT_SHARED(dest))
|
||||
*type |= CL_MAKE_SHARED;
|
||||
return last_src;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue