Skip to content

Commit 474a00e

Browse files
author
Al Viro
committed
kill simple_set_mnt()
not needed anymore, since all users (->get_sb() instances) are gone. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 054cfaa commit 474a00e

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

‎fs/namespace.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -466,14 +466,6 @@ static void __mnt_unmake_readonly(struct vfsmount *mnt)
466466
br_write_unlock(vfsmount_lock);
467467
}
468468

469-
void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb)
470-
{
471-
mnt->mnt_sb = sb;
472-
mnt->mnt_root = dget(sb->s_root);
473-
}
474-
475-
EXPORT_SYMBOL(simple_set_mnt);
476-
477469
void free_vfsmnt(struct vfsmount *mnt)
478470
{
479471
kfree(mnt->mnt_devname);

‎include/linux/fs.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,6 @@ extern struct dentry *mount_pseudo(struct file_system_type *, char *,
18391839
const struct super_operations *ops,
18401840
const struct dentry_operations *dops,
18411841
unsigned long);
1842-
extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb);
18431842

18441843
static inline void sb_mark_dirty(struct super_block *sb)
18451844
{

0 commit comments

Comments
 (0)