]> err.no Git - linux-2.6/blobdiff - fs/namespace.c
[PATCH] use list_add_tail() instead of list_add()
[linux-2.6] / fs / namespace.c
index 6bb0b85293e700d26cc582a6970ced853d968dfb..866430bb024def32565e231600300c5411d55663 100644 (file)
@@ -86,6 +86,15 @@ struct vfsmount *alloc_vfsmnt(const char *name)
        return mnt;
 }
 
+int simple_set_mnt(struct vfsmount *mnt, struct super_block *sb)
+{
+       mnt->mnt_sb = sb;
+       mnt->mnt_root = dget(sb->s_root);
+       return 0;
+}
+
+EXPORT_SYMBOL(simple_set_mnt);
+
 void free_vfsmnt(struct vfsmount *mnt)
 {
        kfree(mnt->mnt_devname);