Skip to content

Commit 592238c

Browse files
author
Al Viro
committed
pnode: lift peers() into pnode.h
it's going to be useful both in pnode.c and namespace.c Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 0e84653 commit 592238c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

fs/pnode.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,6 @@ static struct mount *next_group(struct mount *m, struct mount *origin)
216216
static struct mount *last_dest, *first_source, *last_source, *dest_master;
217217
static struct hlist_head *list;
218218

219-
static inline bool peers(const struct mount *m1, const struct mount *m2)
220-
{
221-
return m1->mnt_group_id == m2->mnt_group_id && m1->mnt_group_id;
222-
}
223-
224219
static int propagate_one(struct mount *m, struct mountpoint *dest_mp)
225220
{
226221
struct mount *child;

fs/pnode.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ static inline void set_mnt_shared(struct mount *mnt)
3434
mnt->mnt.mnt_flags |= MNT_SHARED;
3535
}
3636

37+
static inline bool peers(const struct mount *m1, const struct mount *m2)
38+
{
39+
return m1->mnt_group_id == m2->mnt_group_id && m1->mnt_group_id;
40+
}
41+
3742
void change_mnt_propagation(struct mount *, int);
3843
int propagate_mnt(struct mount *, struct mountpoint *, struct mount *,
3944
struct hlist_head *);

0 commit comments

Comments
 (0)