• Home
  • Raw
  • Download

Lines Matching refs:old_dir

1282 static int do_rename(struct inode *old_dir, struct dentry *old_dentry,  in do_rename()  argument
1286 struct ubifs_info *c = old_dir->i_sb->s_fs_info; in do_rename()
1292 int err, release, sync = 0, move = (new_dir != old_dir); in do_rename()
1315 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename()
1332 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm); in do_rename()
1373 whiteout = create_whiteout(old_dir, old_dentry); in do_rename()
1405 lock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1411 time = current_time(old_dir); in do_rename()
1421 drop_nlink(old_dir); in do_rename()
1435 drop_nlink(old_dir); in do_rename()
1439 old_dir->i_size -= old_sz; in do_rename()
1440 ubifs_inode(old_dir)->ui_size = old_dir->i_size; in do_rename()
1441 old_dir->i_mtime = old_dir->i_ctime = time; in do_rename()
1471 sync = IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir); in do_rename()
1481 err = ubifs_jnl_rename(c, old_dir, old_inode, &old_nm, new_dir, in do_rename()
1486 unlock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1520 old_dir->i_size += old_sz; in do_rename()
1521 ubifs_inode(old_dir)->ui_size = old_dir->i_size; in do_rename()
1524 inc_nlink(old_dir); in do_rename()
1529 inc_nlink(old_dir); in do_rename()
1532 unlock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1545 static int ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, in ubifs_xrename() argument
1548 struct ubifs_info *c = old_dir->i_sb->s_fs_info; in ubifs_xrename()
1551 int sync = IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir); in ubifs_xrename()
1560 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &fst_nm); in ubifs_xrename()
1570 lock_4_inodes(old_dir, new_dir, NULL, NULL); in ubifs_xrename()
1572 time = current_time(old_dir); in ubifs_xrename()
1575 old_dir->i_mtime = old_dir->i_ctime = time; in ubifs_xrename()
1578 if (old_dir != new_dir) { in ubifs_xrename()
1581 drop_nlink(old_dir); in ubifs_xrename()
1585 inc_nlink(old_dir); in ubifs_xrename()
1589 err = ubifs_jnl_xrename(c, old_dir, fst_inode, &fst_nm, new_dir, in ubifs_xrename()
1592 unlock_4_inodes(old_dir, new_dir, NULL, NULL); in ubifs_xrename()
1600 static int ubifs_rename(struct inode *old_dir, struct dentry *old_dentry, in ubifs_rename() argument
1605 struct ubifs_info *c = old_dir->i_sb->s_fs_info; in ubifs_rename()
1610 ubifs_assert(c, inode_is_locked(old_dir)); in ubifs_rename()
1613 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ubifs_rename()
1619 return ubifs_xrename(old_dir, old_dentry, new_dir, new_dentry); in ubifs_rename()
1621 return do_rename(old_dir, old_dentry, new_dir, new_dentry, flags); in ubifs_rename()