|
@@ -340,7 +340,7 @@ static int __init do_name(void)
|
|
|
int openflags = O_WRONLY|O_CREAT;
|
|
int openflags = O_WRONLY|O_CREAT;
|
|
|
if (ml != 1)
|
|
if (ml != 1)
|
|
|
openflags |= O_TRUNC;
|
|
openflags |= O_TRUNC;
|
|
|
- wfd = sys_open(collected, openflags, mode);
|
|
|
|
|
|
|
+ wfd = ksys_open(collected, openflags, mode);
|
|
|
|
|
|
|
|
if (wfd >= 0) {
|
|
if (wfd >= 0) {
|
|
|
ksys_fchown(wfd, uid, gid);
|
|
ksys_fchown(wfd, uid, gid);
|
|
@@ -567,7 +567,7 @@ static void __init clean_rootfs(void)
|
|
|
struct linux_dirent64 *dirp;
|
|
struct linux_dirent64 *dirp;
|
|
|
int num;
|
|
int num;
|
|
|
|
|
|
|
|
- fd = sys_open("/", O_RDONLY, 0);
|
|
|
|
|
|
|
+ fd = ksys_open("/", O_RDONLY, 0);
|
|
|
WARN_ON(fd < 0);
|
|
WARN_ON(fd < 0);
|
|
|
if (fd < 0)
|
|
if (fd < 0)
|
|
|
return;
|
|
return;
|
|
@@ -629,7 +629,7 @@ static int __init populate_rootfs(void)
|
|
|
}
|
|
}
|
|
|
printk(KERN_INFO "rootfs image is not initramfs (%s)"
|
|
printk(KERN_INFO "rootfs image is not initramfs (%s)"
|
|
|
"; looks like an initrd\n", err);
|
|
"; looks like an initrd\n", err);
|
|
|
- fd = sys_open("/initrd.image",
|
|
|
|
|
|
|
+ fd = ksys_open("/initrd.image",
|
|
|
O_WRONLY|O_CREAT, 0700);
|
|
O_WRONLY|O_CREAT, 0700);
|
|
|
if (fd >= 0) {
|
|
if (fd >= 0) {
|
|
|
ssize_t written = xwrite(fd, (char *)initrd_start,
|
|
ssize_t written = xwrite(fd, (char *)initrd_start,
|