diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-10-24 00:14:36 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-10-24 00:14:36 +0200 |
commit | c771d683a62e5d36bc46036f5c07f4f5bb7dda61 (patch) | |
tree | bd1909f5b62a62d4cc2d88ea659a5d222d81f66f /include/linux/mount.h | |
parent | bd5d08569cc379f8366663a61558a9ce17c2e460 (diff) | |
download | linux-stable-c771d683a62e5d36bc46036f5c07f4f5bb7dda61.tar.gz linux-stable-c771d683a62e5d36bc46036f5c07f4f5bb7dda61.tar.bz2 linux-stable-c771d683a62e5d36bc46036f5c07f4f5bb7dda61.zip |
vfs: introduce clone_private_mount()
Overlayfs needs a private clone of the mount, so create a function for
this and export to modules.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include/linux/mount.h')
-rw-r--r-- | include/linux/mount.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mount.h b/include/linux/mount.h index 9262e4bf0cc3..c2c561dc0114 100644 --- a/include/linux/mount.h +++ b/include/linux/mount.h @@ -81,6 +81,9 @@ extern struct vfsmount *mntget(struct vfsmount *mnt); extern struct vfsmount *mnt_clone_internal(struct path *path); extern int __mnt_is_readonly(struct vfsmount *mnt); +struct path; +extern struct vfsmount *clone_private_mount(struct path *path); + struct file_system_type; extern struct vfsmount *vfs_kern_mount(struct file_system_type *type, int flags, const char *name, |