Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147819
b: refs/heads/master
c: 589ff87
h: refs/heads/master
i:
  147817: 9b96fca
  147815: d52c94b
v: v3
  • Loading branch information
Al Viro committed Jun 12, 2009
1 parent 70138dc commit a83b543
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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: bab77ebf51e3902f608ecf08c9d34a0a52ac35a9
refs/heads/master: 589ff870ed60a9ebdd5ec99ec3f5afe1282fe151
4 changes: 2 additions & 2 deletions trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1253,11 +1253,11 @@ struct vfsmount *copy_tree(struct vfsmount *mnt, struct dentry *dentry,
return NULL;
}

struct vfsmount *collect_mounts(struct vfsmount *mnt, struct dentry *dentry)
struct vfsmount *collect_mounts(struct path *path)
{
struct vfsmount *tree;
down_write(&namespace_sem);
tree = copy_tree(mnt, dentry, CL_COPY_ALL | CL_PRIVATE);
tree = copy_tree(path->mnt, path->dentry, CL_COPY_ALL | CL_PRIVATE);
up_write(&namespace_sem);
return tree;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,7 @@ extern struct vfsmount *kern_mount_data(struct file_system_type *, void *data);
extern int may_umount_tree(struct vfsmount *);
extern int may_umount(struct vfsmount *);
extern long do_mount(char *, char *, char *, unsigned long, void *);
extern struct vfsmount *collect_mounts(struct vfsmount *, struct dentry *);
extern struct vfsmount *collect_mounts(struct path *);
extern void drop_collected_mounts(struct vfsmount *);

extern int vfs_statfs(struct dentry *, struct kstatfs *);
Expand Down
6 changes: 3 additions & 3 deletions trunk/kernel/audit_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void audit_trim_trees(void)
if (err)
goto skip_it;

root_mnt = collect_mounts(path.mnt, path.dentry);
root_mnt = collect_mounts(&path);
path_put(&path);
if (!root_mnt)
goto skip_it;
Expand Down Expand Up @@ -660,7 +660,7 @@ int audit_add_tree_rule(struct audit_krule *rule)
err = kern_path(tree->pathname, 0, &path);
if (err)
goto Err;
mnt = collect_mounts(path.mnt, path.dentry);
mnt = collect_mounts(&path);
path_put(&path);
if (!mnt) {
err = -ENOMEM;
Expand Down Expand Up @@ -720,7 +720,7 @@ int audit_tag_tree(char *old, char *new)
err = kern_path(new, 0, &path);
if (err)
return err;
tagged = collect_mounts(path.mnt, path.dentry);
tagged = collect_mounts(&path);
path_put(&path);
if (!tagged)
return -ENOMEM;
Expand Down

0 comments on commit a83b543

Please sign in to comment.