X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Fnamespace.c;h=2323bd5b5586f5f0e84a2f83f8613bb93ac1662c;hb=refs%2Fheads%2Ftizen;hp=e157efc54023a051faa7dcf0b7d91813dbec7134;hpb=7c9aa0f7463eede3226daf06ff7ccbb813f8b739;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/fs/namespace.c b/fs/namespace.c index e157efc..2323bd5 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -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));