/* check init_symlink for more info */ static int create_symlink(const char *oldname, const char *newname) { struct dentry *dentry; struct path path; int error;
/* we do not care about its return value */ unlink_filename(newname);
dentry = kern_path_create(AT_FDCWD, newname, &path, 0); if (IS_ERR(dentry)) return PTR_ERR(dentry);