/linux-6.1.9/fs/fat/ |
D | namei_vfat.c | 936 struct inode *old_inode, *new_inode; in vfat_rename() local 945 new_inode = d_inode(new_dentry); in vfat_rename() 959 if (new_inode) { in vfat_rename() 961 err = fat_dir_empty(new_inode); in vfat_rename() 965 new_i_pos = MSDOS_I(new_inode)->i_pos; in vfat_rename() 966 fat_detach(new_inode); in vfat_rename() 988 if (!new_inode) in vfat_rename() 998 if (new_inode) { in vfat_rename() 999 drop_nlink(new_inode); in vfat_rename() 1001 drop_nlink(new_inode); in vfat_rename() [all …]
|
D | namei_msdos.c | 435 struct inode *old_inode, *new_inode; in do_msdos_rename() local 443 new_inode = d_inode(new_dentry); in do_msdos_rename() 463 if (!new_inode) { in do_msdos_rename() 493 if (new_inode) { in do_msdos_rename() 497 err = fat_dir_empty(new_inode); in do_msdos_rename() 501 new_i_pos = MSDOS_I(new_inode)->i_pos; in do_msdos_rename() 502 fat_detach(new_inode); in do_msdos_rename() 534 if (!new_inode) in do_msdos_rename() 549 if (new_inode) { in do_msdos_rename() 550 drop_nlink(new_inode); in do_msdos_rename() [all …]
|
/linux-6.1.9/drivers/android/ |
D | binderfs.c | 151 inode = new_inode(sb); in binderfs_binder_device_create() 418 inode = new_inode(sb); in binderfs_binder_ctl_create() 473 ret = new_inode(sb); in binderfs_make_inode() 520 struct inode *new_inode, *parent_inode; in binderfs_create_file() local 531 new_inode = binderfs_make_inode(sb, S_IFREG | 0444); in binderfs_create_file() 532 if (!new_inode) { in binderfs_create_file() 538 new_inode->i_fop = fops; in binderfs_create_file() 539 new_inode->i_private = data; in binderfs_create_file() 540 d_instantiate(dentry, new_inode); in binderfs_create_file() 552 struct inode *new_inode, *parent_inode; in binderfs_create_dir() local [all …]
|
/linux-6.1.9/fs/f2fs/ |
D | namei.c | 191 inode = new_inode(dir->i_sb); in f2fs_new_inode() 846 struct inode **new_inode) in __f2fs_tmpfile() argument 901 if (new_inode) in __f2fs_tmpfile() 902 *new_inode = inode; in __f2fs_tmpfile() 941 struct inode **new_inode) in f2fs_get_tmpfile() argument 943 return __f2fs_tmpfile(mnt_userns, dir, NULL, S_IFREG, false, new_inode); in f2fs_get_tmpfile() 952 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename() local 979 if (old_dir == new_dir && !new_inode) { in f2fs_rename() 999 if (new_inode) { in f2fs_rename() 1000 err = f2fs_dquot_initialize(new_inode); in f2fs_rename() [all …]
|
/linux-6.1.9/fs/sysv/ |
D | namei.c | 197 struct inode * new_inode = d_inode(new_dentry); in sysv_rename() local 218 if (new_inode) { in sysv_rename() 223 if (dir_de && !sysv_empty_dir(new_inode)) in sysv_rename() 231 new_inode->i_ctime = current_time(new_inode); in sysv_rename() 233 drop_nlink(new_inode); in sysv_rename() 234 inode_dec_link_count(new_inode); in sysv_rename()
|
/linux-6.1.9/fs/minix/ |
D | namei.c | 193 struct inode * new_inode = d_inode(new_dentry); in minix_rename() local 214 if (new_inode) { in minix_rename() 219 if (dir_de && !minix_empty_dir(new_inode)) in minix_rename() 227 new_inode->i_ctime = current_time(new_inode); in minix_rename() 229 drop_nlink(new_inode); in minix_rename() 230 inode_dec_link_count(new_inode); in minix_rename()
|
/linux-6.1.9/fs/ufs/ |
D | namei.c | 251 struct inode *new_inode = d_inode(new_dentry); in ufs_rename() local 272 if (new_inode) { in ufs_rename() 277 if (dir_de && !ufs_empty_dir(new_inode)) in ufs_rename() 285 new_inode->i_ctime = current_time(new_inode); in ufs_rename() 287 drop_nlink(new_inode); in ufs_rename() 288 inode_dec_link_count(new_inode); in ufs_rename()
|
/linux-6.1.9/fs/exfat/ |
D | namei.c | 1165 struct inode *new_inode = new_dentry->d_inode; in __exfat_rename() local 1194 if (new_inode) { in __exfat_rename() 1196 new_ei = EXFAT_I(new_inode); in __exfat_rename() 1218 EXFAT_B_TO_CLU_ROUND_UP(i_size_read(new_inode), in __exfat_rename() 1243 if (!ret && new_inode) { in __exfat_rename() 1258 if (exfat_remove_entries(new_inode, p_dir, new_entry, 0, in __exfat_rename() 1270 EXFAT_B_TO_CLU_ROUND_UP(i_size_read(new_inode), in __exfat_rename() 1273 if (exfat_free_cluster(new_inode, &new_clu_to_free)) { in __exfat_rename() 1278 i_size_write(new_inode, 0); in __exfat_rename() 1298 struct inode *old_inode, *new_inode; in exfat_rename() local [all …]
|
/linux-6.1.9/fs/bfs/ |
D | dir.c | 87 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()
|
/linux-6.1.9/fs/ext2/ |
D | namei.c | 324 struct inode * new_inode = d_inode(new_dentry); in ext2_rename() local 358 if (new_inode) { in ext2_rename() 364 if (dir_de && !ext2_empty_dir (new_inode)) in ext2_rename() 375 new_inode->i_ctime = current_time(new_inode); in ext2_rename() 377 drop_nlink(new_inode); in ext2_rename() 378 inode_dec_link_count(new_inode); in ext2_rename()
|
/linux-6.1.9/fs/ocfs2/ |
D | namei.c | 189 inode = new_inode(dir->i_sb); in ocfs2_get_init_inode() 1207 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename() local 1250 if (new_inode) { in ocfs2_rename() 1251 if (!igrab(new_inode)) in ocfs2_rename() 1355 if (!new_inode && new_dir != old_dir && in ocfs2_rename() 1398 if (!target_exists && new_inode) { in ocfs2_rename() 1417 if (!new_inode) { in ocfs2_rename() 1425 if (OCFS2_I(new_inode)->ip_blkno != newfe_blkno) { in ocfs2_rename() 1429 (unsigned long long)OCFS2_I(new_inode)->ip_blkno, in ocfs2_rename() 1431 OCFS2_I(new_inode)->ip_flags); in ocfs2_rename() [all …]
|
D | namei.h | 28 struct inode **new_inode); 35 struct inode *new_inode,
|
D | xattr.h | 82 struct inode *new_inode,
|
/linux-6.1.9/fs/nilfs2/ |
D | namei.c | 349 struct inode *new_inode = d_inode(new_dentry); in nilfs_rename() local 376 if (new_inode) { in nilfs_rename() 381 if (dir_de && !nilfs_empty_dir(new_inode)) in nilfs_rename() 390 new_inode->i_ctime = current_time(new_inode); in nilfs_rename() 392 drop_nlink(new_inode); in nilfs_rename() 393 drop_nlink(new_inode); in nilfs_rename() 394 nilfs_mark_inode_dirty(new_inode); in nilfs_rename()
|
/linux-6.1.9/fs/ubifs/ |
D | dir.c | 85 inode = new_inode(c->vfs_sb); in ubifs_new_inode() 1294 struct inode *new_inode = d_inode(new_dentry); in do_rename() local 1300 int unlink = !!new_inode, new_sz, old_sz; in do_rename() 1325 ubifs_assert(c, inode_is_locked(new_inode)); in do_rename() 1327 err = ubifs_purge_xattrs(new_inode); in do_rename() 1333 err = ubifs_check_dir_empty(new_inode); in do_rename() 1414 lock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename() 1463 saved_nlink = new_inode->i_nlink; in do_rename() 1465 clear_nlink(new_inode); in do_rename() 1467 drop_nlink(new_inode); in do_rename() [all …]
|
D | journal.c | 1218 const struct inode *new_inode, in ubifs_jnl_rename() argument 1227 int last_reference = !!(new_inode && new_inode->i_nlink == 0); in ubifs_jnl_rename() 1244 if (new_inode) { in ubifs_jnl_rename() 1245 new_ui = ubifs_inode(new_inode); in ubifs_jnl_rename() 1319 if (new_inode) { in ubifs_jnl_rename() 1320 pack_inode(c, p, new_inode, 0); in ubifs_jnl_rename() 1356 err = ubifs_add_orphan(c, new_inode->i_ino); in ubifs_jnl_rename() 1373 if (new_inode) in ubifs_jnl_rename() 1375 new_inode->i_ino); in ubifs_jnl_rename() 1407 if (new_inode) { in ubifs_jnl_rename() [all …]
|
/linux-6.1.9/fs/hpfs/ |
D | namei.c | 55 result = new_inode(dir->i_sb); in hpfs_mkdir() 158 result = new_inode(dir->i_sb); in hpfs_create() 246 result = new_inode(dir->i_sb); in hpfs_mknod() 323 result = new_inode(dir->i_sb); in hpfs_symlink() 524 struct inode *new_inode = d_inode(new_dentry); in hpfs_rename() local 545 if (new_inode && S_ISDIR(new_inode->i_mode)) { in hpfs_rename() 558 if (new_inode) { in hpfs_rename() 562 clear_nlink(new_inode); in hpfs_rename()
|
/linux-6.1.9/fs/udf/ |
D | namei.c | 1081 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()
|
/linux-6.1.9/fs/9p/ |
D | vfs_inode.c | 369 inode = new_inode(sb); in v9fs_get_inode() 928 struct inode *new_inode; in v9fs_vfs_rename() local 941 new_inode = d_inode(new_dentry); in v9fs_vfs_rename() 993 if (new_inode) { in v9fs_vfs_rename() 994 if (S_ISDIR(new_inode->i_mode)) in v9fs_vfs_rename() 995 clear_nlink(new_inode); in v9fs_vfs_rename() 997 v9fs_dec_count(new_inode); in v9fs_vfs_rename() 1000 if (!new_inode) in v9fs_vfs_rename()
|
/linux-6.1.9/fs/proc/ |
D | self.c | 46 struct inode *inode = new_inode(s); in proc_setup_self()
|
D | thread_self.c | 46 struct inode *inode = new_inode(s); in proc_setup_thread_self()
|
/linux-6.1.9/fs/devpts/ |
D | inode.c | 351 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()
|
/linux-6.1.9/fs/freevxfs/ |
D | vxfs_inode.c | 146 inode = new_inode(sbp); in vxfs_blkiget() 230 inode = new_inode(sbp); in vxfs_stiget()
|
/linux-6.1.9/fs/jfs/ |
D | jfs_inode.c | 48 inode = new_inode(sb); in ialloc()
|
/linux-6.1.9/fs/ntfs3/ |
D | namei.c | 241 struct inode *new_inode = d_inode(new_dentry); in ntfs_rename() local 272 if (new_inode) { in ntfs_rename()
|