mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
init: add an init_mount helper
Like do_mount, but takes a kernel pointer for the destination path. Switch over the mounts in the init code and devtmpfs to it, which just happen to work due to the implicit set_fs(KERNEL_DS) during early init right now. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -3111,7 +3111,7 @@ char *copy_mount_string(const void __user *data)
|
||||
* Therefore, if this magic number is present, it carries no information
|
||||
* and must be discarded.
|
||||
*/
|
||||
static int path_mount(const char *dev_name, struct path *path,
|
||||
int path_mount(const char *dev_name, struct path *path,
|
||||
const char *type_page, unsigned long flags, void *data_page)
|
||||
{
|
||||
unsigned int mnt_flags = 0, sb_flags;
|
||||
|
Reference in New Issue
Block a user