Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280173
b: refs/heads/master
c: 0f0afb1
h: refs/heads/master
i:
  280171: 170d118
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent bf50128 commit 741e625
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b105e270b4e9419f4b9536f6862b1b32985bc9d2
refs/heads/master: 0f0afb1dcf01afc44581b3c0da251ac07dfb6e4a
8 changes: 4 additions & 4 deletions trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ static struct vfsmount *clone_mnt(struct vfsmount *old, struct dentry *root,
mnt->mnt.mnt_master = old->mnt_master;
}
if (flag & CL_MAKE_SHARED)
set_mnt_shared(&mnt->mnt);
set_mnt_shared(mnt);

/* stick the duplicate mount on the same expiry list
* as the original if that was on one */
Expand Down Expand Up @@ -1239,7 +1239,7 @@ void umount_tree(struct vfsmount *mnt, int propagate, struct list_head *kill)
p->mnt.mnt_parent->mnt_ghosts++;
dentry_reset_mounted(p->mnt.mnt_mountpoint);
}
change_mnt_propagation(&p->mnt, MS_PRIVATE);
change_mnt_propagation(p, MS_PRIVATE);
}
list_splice(&tmp_list, kill);
}
Expand Down Expand Up @@ -1608,7 +1608,7 @@ static int attach_recursive_mnt(struct mount *source_mnt,

if (IS_MNT_SHARED(dest_mnt)) {
for (p = source_mnt; p; p = next_mnt(p, &source_mnt->mnt))
set_mnt_shared(&p->mnt);
set_mnt_shared(p);
}
if (parent_path) {
detach_mnt(source_mnt, parent_path);
Expand Down Expand Up @@ -1723,7 +1723,7 @@ static int do_change_type(struct path *path, int flag)

br_write_lock(vfsmount_lock);
for (m = mnt; m; m = (recurse ? next_mnt(m, &mnt->mnt) : NULL))
change_mnt_propagation(&m->mnt, type);
change_mnt_propagation(m, type);
br_write_unlock(vfsmount_lock);

out_unlock:
Expand Down
12 changes: 6 additions & 6 deletions trunk/fs/pnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,20 @@ static int do_make_slave(struct vfsmount *mnt)
/*
* vfsmount lock must be held for write
*/
void change_mnt_propagation(struct vfsmount *mnt, int type)
void change_mnt_propagation(struct mount *mnt, int type)
{
if (type == MS_SHARED) {
set_mnt_shared(mnt);
return;
}
do_make_slave(mnt);
do_make_slave(&mnt->mnt);
if (type != MS_SLAVE) {
list_del_init(&mnt->mnt_slave);
mnt->mnt_master = NULL;
list_del_init(&mnt->mnt.mnt_slave);
mnt->mnt.mnt_master = NULL;
if (type == MS_UNBINDABLE)
mnt->mnt_flags |= MNT_UNBINDABLE;
mnt->mnt.mnt_flags |= MNT_UNBINDABLE;
else
mnt->mnt_flags &= ~MNT_UNBINDABLE;
mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE;
}
}

Expand Down
8 changes: 4 additions & 4 deletions trunk/fs/pnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
#define CL_MAKE_SHARED 0x08
#define CL_PRIVATE 0x10

static inline void set_mnt_shared(struct vfsmount *mnt)
static inline void set_mnt_shared(struct mount *mnt)
{
mnt->mnt_flags &= ~MNT_SHARED_MASK;
mnt->mnt_flags |= MNT_SHARED;
mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK;
mnt->mnt.mnt_flags |= MNT_SHARED;
}

void change_mnt_propagation(struct vfsmount *, int);
void change_mnt_propagation(struct mount *, int);
int propagate_mnt(struct vfsmount *, struct dentry *, struct vfsmount *,
struct list_head *);
int propagate_umount(struct list_head *);
Expand Down

0 comments on commit 741e625

Please sign in to comment.