Home
last modified time | relevance | path

Searched refs:new_inode (Results 1 – 25 of 79) sorted by relevance

1234

/fs/f2fs/
Dnamei.c34 inode = new_inode(dir->i_sb); in f2fs_new_inode()
900 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename() local
927 if (old_dir == new_dir && !new_inode) { in f2fs_rename()
947 if (new_inode) { in f2fs_rename()
948 err = dquot_initialize(new_inode); in f2fs_rename()
970 if (new_inode) { in f2fs_rename()
973 if (old_dir_entry && !f2fs_empty_dir(new_inode)) in f2fs_rename()
996 new_inode->i_ctime = current_time(new_inode); in f2fs_rename()
997 down_write(&F2FS_I(new_inode)->i_sem); in f2fs_rename()
999 f2fs_i_links_write(new_inode, false); in f2fs_rename()
[all …]
/fs/fat/
Dnamei_msdos.c434 struct inode *old_inode, *new_inode; in do_msdos_rename() local
442 new_inode = d_inode(new_dentry); in do_msdos_rename()
462 if (!new_inode) { in do_msdos_rename()
492 if (new_inode) { in do_msdos_rename()
496 err = fat_dir_empty(new_inode); in do_msdos_rename()
500 new_i_pos = MSDOS_I(new_inode)->i_pos; in do_msdos_rename()
501 fat_detach(new_inode); in do_msdos_rename()
533 if (!new_inode) in do_msdos_rename()
548 if (new_inode) { in do_msdos_rename()
549 drop_nlink(new_inode); in do_msdos_rename()
[all …]
Dnamei_vfat.c901 struct inode *old_inode, *new_inode; in vfat_rename() local
913 new_inode = d_inode(new_dentry); in vfat_rename()
929 if (new_inode) { in vfat_rename()
931 err = fat_dir_empty(new_inode); in vfat_rename()
935 new_i_pos = MSDOS_I(new_inode)->i_pos; in vfat_rename()
936 fat_detach(new_inode); in vfat_rename()
964 if (!new_inode) in vfat_rename()
979 if (new_inode) { in vfat_rename()
980 drop_nlink(new_inode); in vfat_rename()
982 drop_nlink(new_inode); in vfat_rename()
[all …]
/fs/minix/
Dnamei.c189 struct inode * new_inode = d_inode(new_dentry); in minix_rename() local
210 if (new_inode) { in minix_rename()
215 if (dir_de && !minix_empty_dir(new_inode)) in minix_rename()
223 new_inode->i_ctime = current_time(new_inode); in minix_rename()
225 drop_nlink(new_inode); in minix_rename()
226 inode_dec_link_count(new_inode); in minix_rename()
/fs/sysv/
Dnamei.c194 struct inode * new_inode = d_inode(new_dentry); in sysv_rename() local
215 if (new_inode) { in sysv_rename()
220 if (dir_de && !sysv_empty_dir(new_inode)) in sysv_rename()
228 new_inode->i_ctime = current_time(new_inode); in sysv_rename()
230 drop_nlink(new_inode); in sysv_rename()
231 inode_dec_link_count(new_inode); in sysv_rename()
/fs/ufs/
Dnamei.c248 struct inode *new_inode = d_inode(new_dentry); in ufs_rename() local
269 if (new_inode) { in ufs_rename()
274 if (dir_de && !ufs_empty_dir(new_inode)) in ufs_rename()
282 new_inode->i_ctime = current_time(new_inode); in ufs_rename()
284 drop_nlink(new_inode); in ufs_rename()
285 inode_dec_link_count(new_inode); in ufs_rename()
/fs/bfs/
Ddir.c87 inode = new_inode(s); in bfs_create()
206 struct inode *old_inode, *new_inode; in bfs_rename() local
229 new_inode = d_inode(new_dentry); in bfs_rename()
232 if (new_bh && !new_inode) { in bfs_rename()
245 if (new_inode) { in bfs_rename()
246 new_inode->i_ctime = current_time(new_inode); in bfs_rename()
247 inode_dec_link_count(new_inode); in bfs_rename()
/fs/ocfs2/
Dnamei.c190 inode = new_inode(dir->i_sb); in ocfs2_get_init_inode()
1198 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename() local
1241 if (new_inode) { in ocfs2_rename()
1242 if (!igrab(new_inode)) in ocfs2_rename()
1346 if (!new_inode && new_dir != old_dir && in ocfs2_rename()
1389 if (!target_exists && new_inode) { in ocfs2_rename()
1408 if (!new_inode) { in ocfs2_rename()
1416 if (OCFS2_I(new_inode)->ip_blkno != newfe_blkno) { in ocfs2_rename()
1420 (unsigned long long)OCFS2_I(new_inode)->ip_blkno, in ocfs2_rename()
1422 OCFS2_I(new_inode)->ip_flags); in ocfs2_rename()
[all …]
Dnamei.h30 struct inode **new_inode);
37 struct inode *new_inode,
Dxattr.h84 struct inode *new_inode,
/fs/ext2/
Dnamei.c317 struct inode * new_inode = d_inode(new_dentry); in ext2_rename() local
348 if (new_inode) { in ext2_rename()
353 if (dir_de && !ext2_empty_dir (new_inode)) in ext2_rename()
361 new_inode->i_ctime = current_time(new_inode); in ext2_rename()
363 drop_nlink(new_inode); in ext2_rename()
364 inode_dec_link_count(new_inode); in ext2_rename()
/fs/nilfs2/
Dnamei.c346 struct inode *new_inode = d_inode(new_dentry); in nilfs_rename() local
373 if (new_inode) { in nilfs_rename()
378 if (dir_de && !nilfs_empty_dir(new_inode)) in nilfs_rename()
387 new_inode->i_ctime = current_time(new_inode); in nilfs_rename()
389 drop_nlink(new_inode); in nilfs_rename()
390 drop_nlink(new_inode); in nilfs_rename()
391 nilfs_mark_inode_dirty(new_inode); in nilfs_rename()
/fs/ubifs/
Ddir.c97 inode = new_inode(c->vfs_sb); in ubifs_new_inode()
1271 struct inode *new_inode = d_inode(new_dentry); in do_rename() local
1277 int unlink = !!new_inode, new_sz, old_sz; in do_rename()
1300 ubifs_assert(c, inode_is_locked(new_inode)); in do_rename()
1303 req.dirtied_ino_d = ALIGN(ubifs_inode(new_inode)->data_len, 8); in do_rename()
1304 err = ubifs_purge_xattrs(new_inode); in do_rename()
1310 err = ubifs_check_dir_empty(new_inode); in do_rename()
1385 lock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1434 saved_nlink = new_inode->i_nlink; in do_rename()
1436 clear_nlink(new_inode); in do_rename()
[all …]
Djournal.c1217 const struct inode *new_inode, in ubifs_jnl_rename() argument
1226 int last_reference = !!(new_inode && new_inode->i_nlink == 0); in ubifs_jnl_rename()
1242 if (new_inode) { in ubifs_jnl_rename()
1243 new_ui = ubifs_inode(new_inode); in ubifs_jnl_rename()
1306 if (new_inode) { in ubifs_jnl_rename()
1307 pack_inode(c, p, new_inode, 0); in ubifs_jnl_rename()
1334 err = ubifs_add_orphan(c, new_inode->i_ino); in ubifs_jnl_rename()
1351 if (new_inode) in ubifs_jnl_rename()
1353 new_inode->i_ino); in ubifs_jnl_rename()
1384 if (new_inode) { in ubifs_jnl_rename()
[all …]
/fs/hpfs/
Dnamei.c54 result = new_inode(dir->i_sb); in hpfs_mkdir()
156 result = new_inode(dir->i_sb); in hpfs_create()
243 result = new_inode(dir->i_sb); in hpfs_mknod()
319 result = new_inode(dir->i_sb); in hpfs_symlink()
519 struct inode *new_inode = d_inode(new_dentry); in hpfs_rename() local
540 if (new_inode && S_ISDIR(new_inode->i_mode)) { in hpfs_rename()
553 if (new_inode) { in hpfs_rename()
557 clear_nlink(new_inode); in hpfs_rename()
/fs/9p/
Dvfs_inode.c357 inode = new_inode(sb); in v9fs_get_inode()
957 struct inode *new_inode; in v9fs_vfs_rename() local
970 new_inode = d_inode(new_dentry); in v9fs_vfs_rename()
1014 if (new_inode) { in v9fs_vfs_rename()
1015 if (S_ISDIR(new_inode->i_mode)) in v9fs_vfs_rename()
1016 clear_nlink(new_inode); in v9fs_vfs_rename()
1018 v9fs_dec_count(new_inode); in v9fs_vfs_rename()
1021 if (!new_inode) in v9fs_vfs_rename()
/fs/udf/
Dnamei.c1081 struct inode *new_inode = d_inode(new_dentry); in udf_rename() local
1113 if (nfi && !new_inode) { in udf_rename()
1122 if (new_inode) { in udf_rename()
1124 if (!empty_dir(new_inode)) in udf_rename()
1175 if (new_inode) { in udf_rename()
1176 new_inode->i_ctime = current_time(new_inode); in udf_rename()
1177 inode_dec_link_count(new_inode); in udf_rename()
1193 if (new_inode) in udf_rename()
1194 inode_dec_link_count(new_inode); in udf_rename()
/fs/devpts/
Dinode.c351 inode = new_inode(sb); in mknod_ptmx()
468 inode = new_inode(s); in devpts_fill_super()
574 inode = new_inode(sb); in devpts_pty_new()
/fs/freevxfs/
Dvxfs_inode.c170 inode = new_inode(sbp); in vxfs_blkiget()
254 inode = new_inode(sbp); in vxfs_stiget()
/fs/proc/
Dthread_self.c46 struct inode *inode = new_inode(s); in proc_setup_thread_self()
Dself.c53 struct inode *inode = new_inode(s); in proc_setup_self()
/fs/btrfs/
Dinode.c6037 struct inode *inode = new_inode(s); in new_simple_dir()
6565 inode = new_inode(fs_info->sb); in btrfs_new_inode()
9691 struct inode *new_inode = new_dentry->d_inode; in btrfs_rename_exchange() local
9695 u64 new_ino = btrfs_ino(BTRFS_I(new_inode)); in btrfs_rename_exchange()
9747 BTRFS_I(new_inode)->dir_index = 0ULL; in btrfs_rename_exchange()
9783 inode_inc_iversion(new_inode); in btrfs_rename_exchange()
9787 new_inode->i_ctime = ctime; in btrfs_rename_exchange()
9793 BTRFS_I(new_inode), 1); in btrfs_rename_exchange()
9844 ret = btrfs_update_inode(trans, dest, new_inode); in btrfs_rename_exchange()
9859 ret = btrfs_add_link(trans, BTRFS_I(old_dir), BTRFS_I(new_inode), in btrfs_rename_exchange()
[all …]
/fs/efivarfs/
Dinode.c20 struct inode *inode = new_inode(sb); in efivarfs_get_inode()
/fs/jfs/
Djfs_inode.c48 inode = new_inode(sb); in ialloc()
/fs/afs/
Ddir.c1814 struct inode *new_inode; in afs_rename() local
1951 new_inode = d_inode(new_dentry); in afs_rename()
1952 if (new_inode) { in afs_rename()
1953 spin_lock(&new_inode->i_lock); in afs_rename()
1954 if (new_inode->i_nlink > 0) in afs_rename()
1955 drop_nlink(new_inode); in afs_rename()
1956 spin_unlock(&new_inode->i_lock); in afs_rename()

1234