History

switch file_open_root() to struct path

... and provide file_open_root_mnt(), using the root of given mount.

Al Viro committed 5 years ago

Commit ffb37ca1 parent 4f0ed9311 files · +29 −16Browse files

Showing the changes to kernel/usermode_driver.c (1 of 11 files). Show all

Unified · Split

kernel/usermode_driver.c+1−1
@@ -26,7 +26,7 @@ static struct vfsmount *blob_to_mnt(const void *data, size_t len, const char *na · 25 unmodified lines
2626 if (IS_ERR(mnt))
2727 return mnt;
2828
29− file = file_open_root(mnt->mnt_root, mnt, name, O_CREAT | O_WRONLY, 0700);
29+ file = file_open_root_mnt(mnt, name, O_CREAT | O_WRONLY, 0700);
3030 if (IS_ERR(file)) {
3131 mntput(mnt);
3232 return ERR_CAST(file);