From: Al Viro Date: Fri, 18 Mar 2011 01:31:32 +0000 (-0400) Subject: kill simple_set_mnt() X-Git-Tag: v3.0~1529^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=474a00ee1306eb7e82329fdc28b6471a99facba1;p=platform%2Fkernel%2Flinux-amlogic.git kill simple_set_mnt() not needed anymore, since all users (->get_sb() instances) are gone. Signed-off-by: Al Viro --- diff --git a/fs/namespace.c b/fs/namespace.c index d751348..a2a01a1 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -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); diff --git a/include/linux/fs.h b/include/linux/fs.h index 92f7e04..7061a85 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -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) {