Lines Matching refs:new_dir
845 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename() argument
865 if (is_inode_flag_set(new_dir, FI_PROJ_INHERIT) && in f2fs_rename()
866 (!projid_eq(F2FS_I(new_dir)->i_projid, in f2fs_rename()
874 err = dquot_initialize(new_dir); in f2fs_rename()
914 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename()
930 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_rename()
955 f2fs_i_links_write(new_dir, true); in f2fs_rename()
985 f2fs_i_pino_write(old_inode, new_dir->i_ino); in f2fs_rename()
1004 if (old_dir != new_dir && !whiteout) in f2fs_rename()
1006 old_dir_page, new_dir); in f2fs_rename()
1012 f2fs_add_ino_entry(sbi, new_dir->i_ino, TRANS_DIR_INO); in f2fs_rename()
1020 if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir)) in f2fs_rename()
1043 struct inode *new_dir, struct dentry *new_dentry) in f2fs_cross_rename() argument
1060 if ((is_inode_flag_set(new_dir, FI_PROJ_INHERIT) && in f2fs_cross_rename()
1061 !projid_eq(F2FS_I(new_dir)->i_projid, in f2fs_cross_rename()
1063 (is_inode_flag_set(new_dir, FI_PROJ_INHERIT) && in f2fs_cross_rename()
1072 err = dquot_initialize(new_dir); in f2fs_cross_rename()
1084 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, &new_page); in f2fs_cross_rename()
1092 if (old_dir != new_dir) { in f2fs_cross_rename()
1125 (new_nlink > 0 && new_dir->i_nlink >= F2FS_LINK_MAX)) in f2fs_cross_rename()
1135 f2fs_set_link(old_inode, old_dir_entry, old_dir_page, new_dir); in f2fs_cross_rename()
1149 f2fs_i_pino_write(old_inode, new_dir->i_ino); in f2fs_cross_rename()
1161 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_cross_rename()
1171 new_dir->i_ctime = current_time(new_dir); in f2fs_cross_rename()
1173 down_write(&F2FS_I(new_dir)->i_sem); in f2fs_cross_rename()
1174 f2fs_i_links_write(new_dir, new_nlink > 0); in f2fs_cross_rename()
1175 up_write(&F2FS_I(new_dir)->i_sem); in f2fs_cross_rename()
1177 f2fs_mark_inode_dirty_sync(new_dir, false); in f2fs_cross_rename()
1181 f2fs_add_ino_entry(sbi, new_dir->i_ino, TRANS_DIR_INO); in f2fs_cross_rename()
1186 if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir)) in f2fs_cross_rename()
1208 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename2() argument
1216 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in f2fs_rename2()
1223 new_dir, new_dentry); in f2fs_rename2()
1229 return f2fs_rename(old_dir, old_dentry, new_dir, new_dentry, flags); in f2fs_rename2()