tizen: Use unique directory prefix for baselibs packages
[platform/kernel/linux-rpi.git] / fs / namespace.c
index e157efc..2323bd5 100644 (file)
@@ -2045,6 +2045,7 @@ struct vfsmount *collect_mounts(const struct path *path)
                return ERR_CAST(tree);
        return &tree->mnt;
 }
+EXPORT_SYMBOL_GPL(collect_mounts);
 
 static void free_mnt_ns(struct mnt_namespace *);
 static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *, bool);
@@ -2075,6 +2076,7 @@ void drop_collected_mounts(struct vfsmount *mnt)
        unlock_mount_hash();
        namespace_unlock();
 }
+EXPORT_SYMBOL_GPL(drop_collected_mounts);
 
 static bool has_locked_children(struct mount *mnt, struct dentry *dentry)
 {
@@ -2146,6 +2148,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
        }
        return 0;
 }
+EXPORT_SYMBOL_GPL(iterate_mounts);
 
 static void lock_mnt_tree(struct mount *mnt)
 {
@@ -2873,7 +2876,12 @@ static int do_remount(struct path *path, int ms_flags, int sb_flags,
        if (IS_ERR(fc))
                return PTR_ERR(fc);
 
+       /*
+        * Indicate to the filesystem that the remount request is coming
+        * from the legacy mount system call.
+        */
        fc->oldapi = true;
+
        err = parse_monolithic_mount_data(fc, data);
        if (!err) {
                down_write(&sb->s_umount);
@@ -3322,6 +3330,12 @@ static int do_new_mount(struct path *path, const char *fstype, int sb_flags,
        if (IS_ERR(fc))
                return PTR_ERR(fc);
 
+       /*
+        * Indicate to the filesystem that the mount request is coming
+        * from the legacy mount system call.
+        */
+       fc->oldapi = true;
+
        if (subtype)
                err = vfs_parse_fs_string(fc, "subtype",
                                          subtype, strlen(subtype));