Skip to content

Commit

Permalink
kill simple_set_mnt()
Browse files Browse the repository at this point in the history
not needed anymore, since all users (->get_sb() instances) are gone.

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Mar 18, 2011
1 parent 054cfaa commit 474a00e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,14 +466,6 @@ static void __mnt_unmake_readonly(struct vfsmount *mnt)
br_write_unlock(vfsmount_lock);
}

void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb)
{
mnt->mnt_sb = sb;
mnt->mnt_root = dget(sb->s_root);
}

EXPORT_SYMBOL(simple_set_mnt);

void free_vfsmnt(struct vfsmount *mnt)
{
kfree(mnt->mnt_devname);
Expand Down
1 change: 0 additions & 1 deletion include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,6 @@ extern struct dentry *mount_pseudo(struct file_system_type *, char *,
const struct super_operations *ops,
const struct dentry_operations *dops,
unsigned long);
extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb);

static inline void sb_mark_dirty(struct super_block *sb)
{
Expand Down

0 comments on commit 474a00e

Please sign in to comment.