Home
last modified time | relevance | path

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

1234

/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/f2fs/
Dnamei.c34 inode = new_inode(dir->i_sb); in f2fs_new_inode()
850 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename() local
878 if (new_inode) { in f2fs_rename()
879 err = dquot_initialize(new_inode); in f2fs_rename()
907 if (new_inode) { in f2fs_rename()
910 if (old_dir_entry && !f2fs_empty_dir(new_inode)) in f2fs_rename()
932 new_inode->i_ctime = current_time(new_inode); in f2fs_rename()
933 down_write(&F2FS_I(new_inode)->i_sem); in f2fs_rename()
935 f2fs_i_links_write(new_inode, false); in f2fs_rename()
936 f2fs_i_links_write(new_inode, false); in f2fs_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()
1201 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename() local
1244 if (new_inode) { in ocfs2_rename()
1245 if (!igrab(new_inode)) in ocfs2_rename()
1349 if (!new_inode && new_dir != old_dir && in ocfs2_rename()
1392 if (!target_exists && new_inode) { in ocfs2_rename()
1411 if (!new_inode) { in ocfs2_rename()
1419 if (OCFS2_I(new_inode)->ip_blkno != newfe_blkno) { in ocfs2_rename()
1423 (unsigned long long)OCFS2_I(new_inode)->ip_blkno, in ocfs2_rename()
1425 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()
1251 struct inode *new_inode = d_inode(new_dentry); in do_rename() local
1257 int unlink = !!new_inode, new_sz, old_sz; in do_rename()
1280 ubifs_assert(c, inode_is_locked(new_inode)); in do_rename()
1282 err = ubifs_purge_xattrs(new_inode); in do_rename()
1288 err = ubifs_check_dir_empty(new_inode); in do_rename()
1342 lock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1391 saved_nlink = new_inode->i_nlink; in do_rename()
1393 clear_nlink(new_inode); in do_rename()
1395 drop_nlink(new_inode); in do_rename()
[all …]
Djournal.c1213 const struct inode *new_inode, in ubifs_jnl_rename() argument
1222 int last_reference = !!(new_inode && new_inode->i_nlink == 0); in ubifs_jnl_rename()
1238 if (new_inode) { in ubifs_jnl_rename()
1239 new_ui = ubifs_inode(new_inode); in ubifs_jnl_rename()
1302 if (new_inode) { in ubifs_jnl_rename()
1303 pack_inode(c, p, new_inode, 0); in ubifs_jnl_rename()
1330 err = ubifs_add_orphan(c, new_inode->i_ino); in ubifs_jnl_rename()
1346 if (new_inode) in ubifs_jnl_rename()
1348 new_inode->i_ino); in ubifs_jnl_rename()
1379 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.c1074 struct inode *new_inode = d_inode(new_dentry); in udf_rename() local
1106 if (nfi && !new_inode) { in udf_rename()
1115 if (new_inode) { in udf_rename()
1117 if (!empty_dir(new_inode)) in udf_rename()
1168 if (new_inode) { in udf_rename()
1169 new_inode->i_ctime = current_time(new_inode); in udf_rename()
1170 inode_dec_link_count(new_inode); in udf_rename()
1186 if (new_inode) in udf_rename()
1187 inode_dec_link_count(new_inode); in udf_rename()
Dialloc.c60 inode = new_inode(sb); in udf_new_inode()
/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/btrfs/
Dinode.c5831 struct inode *inode = new_inode(s); in new_simple_dir()
6359 inode = new_inode(fs_info->sb); in btrfs_new_inode()
9533 struct inode *new_inode = new_dentry->d_inode; in btrfs_rename_exchange() local
9538 u64 new_ino = btrfs_ino(BTRFS_I(new_inode)); in btrfs_rename_exchange()
9555 btrfs_init_log_ctx(&ctx_dest, new_inode); in btrfs_rename_exchange()
9591 BTRFS_I(new_inode)->dir_index = 0ULL; in btrfs_rename_exchange()
9631 inode_inc_iversion(new_inode); in btrfs_rename_exchange()
9635 new_inode->i_ctime = ctime; in btrfs_rename_exchange()
9641 BTRFS_I(new_inode), 1); in btrfs_rename_exchange()
9669 ret = btrfs_update_inode(trans, dest, new_inode); in btrfs_rename_exchange()
[all …]
/fs/jfs/
Djfs_inode.c48 inode = new_inode(sb); in ialloc()
/fs/efivarfs/
Dinode.c19 struct inode *inode = new_inode(sb); in efivarfs_get_inode()
/fs/afs/
Ddir.c1813 struct inode *new_inode; in afs_rename() local
1946 new_inode = d_inode(new_dentry); in afs_rename()
1947 if (new_inode) { in afs_rename()
1948 spin_lock(&new_inode->i_lock); in afs_rename()
1949 if (new_inode->i_nlink > 0) in afs_rename()
1950 drop_nlink(new_inode); in afs_rename()
1951 spin_unlock(&new_inode->i_lock); in afs_rename()
/fs/omfs/
Ddir.c376 struct inode *new_inode = d_inode(new_dentry); in omfs_rename() local
383 if (new_inode) { in omfs_rename()

1234