Lines Matching refs:old
666 static int ovl_link(struct dentry *old, struct inode *newdir, in ovl_link() argument
672 err = ovl_want_write(old); in ovl_link()
676 err = ovl_copy_up(old); in ovl_link()
684 if (ovl_is_metacopy_dentry(old)) { in ovl_link()
685 err = ovl_set_link_redirect(old); in ovl_link()
690 err = ovl_nlink_start(old); in ovl_link()
694 inode = d_inode(old); in ovl_link()
698 &(struct ovl_cattr) {.hardlink = ovl_dentry_upper(old)}, in ovl_link()
699 ovl_type_origin(old)); in ovl_link()
703 ovl_nlink_end(old); in ovl_link()
705 ovl_drop_write(old); in ovl_link()
1023 static int ovl_rename(struct inode *olddir, struct dentry *old, in ovl_rename() argument
1038 bool is_dir = d_is_dir(old); in ovl_rename()
1053 if (!ovl_can_move(old)) in ovl_rename()
1065 if (ovl_lower_positive(old)) { in ovl_rename()
1079 err = ovl_want_write(old); in ovl_rename()
1083 err = ovl_copy_up(old); in ovl_rename()
1102 old_cred = ovl_override_creds(old->d_sb); in ovl_rename()
1113 old_upperdir = ovl_dentry_upper(old->d_parent); in ovl_rename()
1123 if (ovl_type_origin(old)) { in ovl_rename()
1129 err = ovl_set_impure(old->d_parent, old_upperdir); in ovl_rename()
1137 olddentry = lookup_one_len(old->d_name.name, old_upperdir, in ovl_rename()
1138 old->d_name.len); in ovl_rename()
1144 if (!ovl_matches_upper(old, olddentry)) in ovl_rename()
1153 old_opaque = ovl_dentry_is_opaque(old); in ovl_rename()
1180 if (ovl_type_merge_or_lower(old)) in ovl_rename()
1181 err = ovl_set_redirect(old, samedir); in ovl_rename()
1183 err = ovl_set_opaque_xerr(old, olddentry, -EXDEV); in ovl_rename()
1190 ovl_type_merge(old->d_parent)) in ovl_rename()
1210 ovl_dir_modified(old->d_parent, ovl_type_origin(old) || in ovl_rename()
1212 ovl_dir_modified(new->d_parent, ovl_type_origin(old) || in ovl_rename()
1216 ovl_copyattr(d_inode(olddentry), d_inode(old)); in ovl_rename()
1227 ovl_revert_creds(old->d_sb, old_cred); in ovl_rename()
1231 ovl_drop_write(old); in ovl_rename()