Lines Matching refs:new_dir
1285 struct inode *new_dir, struct dentry *new_dentry, in do_rename() argument
1294 int err, release, sync = 0, move = (new_dir != old_dir); in do_rename()
1317 new_dentry, new_dir->i_ino, flags); in do_rename()
1339 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_nm); in do_rename()
1411 lock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1417 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in do_rename()
1432 inc_nlink(new_dir); in do_rename()
1463 new_dir->i_size += new_sz; in do_rename()
1464 ubifs_inode(new_dir)->ui_size = new_dir->i_size; in do_rename()
1473 sync = IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir); in do_rename()
1483 err = ubifs_jnl_rename(c, old_dir, old_inode, &old_nm, new_dir, in do_rename()
1488 unlock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1519 new_dir->i_size -= new_sz; in do_rename()
1520 ubifs_inode(new_dir)->ui_size = new_dir->i_size; in do_rename()
1528 drop_nlink(new_dir); in do_rename()
1534 unlock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1548 struct inode *new_dir, struct dentry *new_dentry) in ubifs_xrename() argument
1553 int sync = IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir); in ubifs_xrename()
1568 new_dentry, snd_inode->i_ino, new_dir->i_ino); in ubifs_xrename()
1574 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &snd_nm); in ubifs_xrename()
1584 lock_4_inodes(old_dir, new_dir, NULL, NULL); in ubifs_xrename()
1586 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in ubifs_xrename()
1588 if (old_dir != new_dir) { in ubifs_xrename()
1590 inc_nlink(new_dir); in ubifs_xrename()
1594 drop_nlink(new_dir); in ubifs_xrename()
1599 err = ubifs_jnl_xrename(c, old_dir, fst_inode, &fst_nm, new_dir, in ubifs_xrename()
1602 unlock_4_inodes(old_dir, new_dir, NULL, NULL); in ubifs_xrename()
1613 struct inode *new_dir, struct dentry *new_dentry, in ubifs_rename() argument
1623 ubifs_assert(c, inode_is_locked(new_dir)); in ubifs_rename()
1625 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ubifs_rename()
1631 return ubifs_xrename(old_dir, old_dentry, new_dir, new_dentry); in ubifs_rename()
1633 return do_rename(old_dir, old_dentry, new_dir, new_dentry, flags); in ubifs_rename()