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
26 if (IS_ERR(mnt))26 if (IS_ERR(mnt))
27 return mnt;27 return mnt;
28 28
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);
30 if (IS_ERR(file)) {30 if (IS_ERR(file)) {
31 mntput(mnt);31 mntput(mnt);
32 return ERR_CAST(file);32 return ERR_CAST(file);