old_path 77 arch/um/os-Linux/main.c char *old_path = NULL; old_path 80 arch/um/os-Linux/main.c old_path = getenv("PATH"); old_path 85 arch/um/os-Linux/main.c if (!old_path || (path_len = strlen(old_path)) == 0) { old_path 98 arch/um/os-Linux/main.c snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); old_path 594 fs/cifs/cifsproto.h const char *old_path, old_path 598 fs/cifs/cifsproto.h return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, old_path 4264 fs/namei.c struct path old_path, new_path; old_path 4285 fs/namei.c error = user_path_at(olddfd, oldname, how, &old_path); old_path 4296 fs/namei.c if (old_path.mnt != new_path.mnt) old_path 4298 fs/namei.c error = may_linkat(&old_path); old_path 4301 fs/namei.c error = security_path_link(old_path.dentry, &new_path, new_dentry); old_path 4304 fs/namei.c error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, &delegated_inode); old_path 4310 fs/namei.c path_put(&old_path); old_path 4315 fs/namei.c path_put(&old_path); old_path 4320 fs/namei.c path_put(&old_path); old_path 4516 fs/namei.c struct path old_path, new_path; old_path 4541 fs/namei.c &old_path, &old_last, &old_type); old_path 4555 fs/namei.c if (old_path.mnt != new_path.mnt) old_path 4567 fs/namei.c error = mnt_want_write(old_path.mnt); old_path 4572 fs/namei.c trap = lock_rename(new_path.dentry, old_path.dentry); old_path 4574 fs/namei.c old_dentry = __lookup_hash(&old_last, old_path.dentry, lookup_flags); old_path 4618 fs/namei.c error = security_path_rename(&old_path, old_dentry, old_path 4622 fs/namei.c error = vfs_rename(old_path.dentry->d_inode, old_dentry, old_path 4630 fs/namei.c unlock_rename(new_path.dentry, old_path.dentry); old_path 4636 fs/namei.c mnt_drop_write(old_path.mnt); old_path 4643 fs/namei.c path_put(&old_path); old_path 2247 fs/namespace.c static struct mount *__do_loopback(struct path *old_path, int recurse) old_path 2249 fs/namespace.c struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt); old_path 2254 fs/namespace.c if (!check_mnt(old) && old_path->dentry->d_op != &ns_dentry_operations) old_path 2257 fs/namespace.c if (!recurse && has_locked_children(old, old_path->dentry)) old_path 2261 fs/namespace.c mnt = copy_tree(old, old_path->dentry, CL_COPY_MNT_NS_FILE); old_path 2263 fs/namespace.c mnt = clone_mnt(old, old_path->dentry, 0); old_path 2277 fs/namespace.c struct path old_path; old_path 2283 fs/namespace.c err = kern_path(old_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); old_path 2288 fs/namespace.c if (mnt_ns_loop(old_path.dentry)) old_path 2301 fs/namespace.c mnt = __do_loopback(&old_path, recurse); old_path 2316 fs/namespace.c path_put(&old_path); old_path 2598 fs/namespace.c static int do_move_mount(struct path *old_path, struct path *new_path) old_path 2612 fs/namespace.c old = real_mount(old_path->mnt); old_path 2635 fs/namespace.c if (old_path->dentry != old_path->mnt->mnt_root) old_path 2639 fs/namespace.c d_is_dir(old_path->dentry)) old_path 2682 fs/namespace.c struct path old_path; old_path 2688 fs/namespace.c err = kern_path(old_name, LOOKUP_FOLLOW, &old_path); old_path 2692 fs/namespace.c err = do_move_mount(&old_path, path); old_path 2693 fs/namespace.c path_put(&old_path); old_path 845 fs/ocfs2/ioctl.c const char __user *old_path; old_path 908 fs/ocfs2/ioctl.c old_path = (const char __user *)(unsigned long)args.old_path; old_path 912 fs/ocfs2/ioctl.c return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); old_path 981 fs/ocfs2/ioctl.c return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path), old_path 65 fs/ocfs2/ocfs2_ioctl.h __u64 old_path; old_path 4424 fs/ocfs2/refcounttree.c struct path old_path, new_path; old_path 4430 fs/ocfs2/refcounttree.c error = user_path_at(AT_FDCWD, oldname, 0, &old_path); old_path 4444 fs/ocfs2/refcounttree.c if (old_path.mnt != new_path.mnt) { old_path 4449 fs/ocfs2/refcounttree.c error = ocfs2_vfs_reflink(old_path.dentry, old_path 4455 fs/ocfs2/refcounttree.c path_put(&old_path); old_path 1506 include/linux/lsm_hooks.h int (*sb_pivotroot)(const struct path *old_path, const struct path *new_path); old_path 295 include/linux/security.h int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); old_path 648 include/linux/security.h static inline int security_sb_pivotroot(const struct path *old_path, old_path 47 security/apparmor/include/mount.h int aa_pivotroot(struct aa_label *label, const struct path *old_path, old_path 354 security/apparmor/lsm.c struct path old_path = { .mnt = old_dir->mnt, old_path 362 security/apparmor/lsm.c error = aa_path_perm(OP_RENAME_SRC, label, &old_path, 0, old_path 561 security/apparmor/lsm.c static int apparmor_sb_pivotroot(const struct path *old_path, old_path 569 security/apparmor/lsm.c error = aa_pivotroot(label, old_path, new_path); old_path 425 security/apparmor/mount.c struct path old_path; old_path 436 security/apparmor/mount.c error = kern_path(dev_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); old_path 442 security/apparmor/mount.c match_mnt(profile, path, buffer, &old_path, old_buffer, old_path 445 security/apparmor/mount.c path_put(&old_path); old_path 478 security/apparmor/mount.c struct path old_path; old_path 487 security/apparmor/mount.c error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); old_path 493 security/apparmor/mount.c match_mnt(profile, path, buffer, &old_path, old_buffer, old_path 496 security/apparmor/mount.c path_put(&old_path); old_path 609 security/apparmor/mount.c const struct path *old_path, old_path 620 security/apparmor/mount.c AA_BUG(!old_path); old_path 626 security/apparmor/mount.c error = aa_path_name(old_path, path_flags(profile, old_path), old_path 658 security/apparmor/mount.c int aa_pivotroot(struct aa_label *label, const struct path *old_path, old_path 667 security/apparmor/mount.c AA_BUG(!old_path); old_path 673 security/apparmor/mount.c old_path, old_buffer)); old_path 868 security/security.c int security_sb_pivotroot(const struct path *old_path, const struct path *new_path) old_path 870 security/security.c return call_int_hook(sb_pivotroot, 0, old_path, new_path); old_path 426 security/tomoyo/tomoyo.c static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) old_path 428 security/tomoyo/tomoyo.c return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); old_path 4128 sound/pci/hda/hda_generic.c struct nid_path *old_path, *path; old_path 4139 sound/pci/hda/hda_generic.c old_path = get_input_path(codec, adc_idx, spec->cur_mux[adc_idx]); old_path 4140 sound/pci/hda/hda_generic.c if (!old_path) old_path 4142 sound/pci/hda/hda_generic.c if (old_path->active) old_path 4143 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, old_path, false, false); old_path 4161 sound/pci/hda/hda_generic.c path_power_down_sync(codec, old_path); old_path 142 tools/lib/subcmd/exec-cmd.c const char *old_path = getenv("PATH"); old_path 150 tools/lib/subcmd/exec-cmd.c if (old_path) old_path 151 tools/lib/subcmd/exec-cmd.c astrcat(&new_path, old_path); old_path 331 tools/perf/builtin-help.c const char *old_path = getenv("MANPATH"); old_path 337 tools/perf/builtin-help.c if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) {