Lines Matching refs:new_inode
32 inode = new_inode(dir->i_sb);
354 struct inode *new_inode = new_dentry->d_inode;
375 if (new_inode) {
378 if (old_dir_entry && !f2fs_empty_dir(new_inode))
400 new_inode->i_ctime = CURRENT_TIME;
401 down_write(&F2FS_I(new_inode)->i_sem);
403 drop_nlink(new_inode);
404 drop_nlink(new_inode);
405 up_write(&F2FS_I(new_inode)->i_sem);
407 mark_inode_dirty(new_inode);
409 if (!new_inode->i_nlink)
410 add_orphan_inode(sbi, new_inode->i_ino);
415 update_inode_page(new_inode);
478 struct inode *new_inode = new_dentry->d_inode;
506 if (S_ISDIR(new_inode->i_mode)) {
508 new_dir_entry = f2fs_parent_dir(new_inode,
526 (new_nlink > 0 && new_inode->i_nlink >= F2FS_LINK_MAX))
536 err = update_dent_inode(new_inode, &old_dentry->d_name);
546 f2fs_set_link(new_inode, new_dir_entry, new_dir_page, old_dir);
549 f2fs_set_link(old_dir, old_entry, old_page, new_inode);
572 down_write(&F2FS_I(new_inode)->i_sem);
573 file_lost_pino(new_inode);
574 up_write(&F2FS_I(new_inode)->i_sem);
576 update_inode_page(new_inode);