/fs/f2fs/ |
D | namei.c | 217 inode = new_inode(dir->i_sb); in f2fs_new_inode() 842 struct inode **new_inode) in __f2fs_tmpfile() argument 897 if (new_inode) in __f2fs_tmpfile() 898 *new_inode = inode; in __f2fs_tmpfile() 931 struct inode **new_inode) in f2fs_get_tmpfile() argument 933 return __f2fs_tmpfile(mnt_userns, dir, NULL, S_IFREG, false, new_inode); in f2fs_get_tmpfile() 942 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename() local 969 if (old_dir == new_dir && !new_inode) { in f2fs_rename() 989 if (new_inode) { in f2fs_rename() 990 err = f2fs_dquot_initialize(new_inode); in f2fs_rename() [all …]
|
/fs/fat/ |
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 …]
|
D | namei_vfat.c | 902 struct inode *old_inode, *new_inode; in vfat_rename() local 914 new_inode = d_inode(new_dentry); in vfat_rename() 930 if (new_inode) { in vfat_rename() 932 err = fat_dir_empty(new_inode); in vfat_rename() 936 new_i_pos = MSDOS_I(new_inode)->i_pos; in vfat_rename() 937 fat_detach(new_inode); in vfat_rename() 965 if (!new_inode) in vfat_rename() 980 if (new_inode) { in vfat_rename() 981 drop_nlink(new_inode); in vfat_rename() 983 drop_nlink(new_inode); in vfat_rename() [all …]
|
/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()
|
/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()
|
/fs/exfat/ |
D | namei.c | 1191 struct inode *new_inode = new_dentry->d_inode; in __exfat_rename() local 1220 if (new_inode) { in __exfat_rename() 1222 new_ei = EXFAT_I(new_inode); in __exfat_rename() 1244 EXFAT_B_TO_CLU_ROUND_UP(i_size_read(new_inode), in __exfat_rename() 1269 if (!ret && new_inode) { in __exfat_rename() 1284 if (exfat_remove_entries(new_inode, p_dir, new_entry, 0, in __exfat_rename() 1297 EXFAT_B_TO_CLU_ROUND_UP(i_size_read(new_inode), in __exfat_rename() 1300 if (exfat_free_cluster(new_inode, &new_clu_to_free)) { in __exfat_rename() 1305 i_size_write(new_inode, 0); in __exfat_rename() 1326 struct inode *old_inode, *new_inode; in exfat_rename() local [all …]
|
/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()
|
/fs/ocfs2/ |
D | namei.c | 189 inode = new_inode(dir->i_sb); in ocfs2_get_init_inode() 1208 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename() local 1251 if (new_inode) { in ocfs2_rename() 1252 if (!igrab(new_inode)) in ocfs2_rename() 1356 if (!new_inode && new_dir != old_dir && in ocfs2_rename() 1399 if (!target_exists && new_inode) { in ocfs2_rename() 1418 if (!new_inode) { in ocfs2_rename() 1426 if (OCFS2_I(new_inode)->ip_blkno != newfe_blkno) { in ocfs2_rename() 1430 (unsigned long long)OCFS2_I(new_inode)->ip_blkno, in ocfs2_rename() 1432 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,
|
/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()
|
/fs/ext2/ |
D | namei.c | 330 struct inode * new_inode = d_inode(new_dentry); in ext2_rename() local 364 if (new_inode) { in ext2_rename() 370 if (dir_de && !ext2_empty_dir (new_inode)) in ext2_rename() 381 new_inode->i_ctime = current_time(new_inode); in ext2_rename() 383 drop_nlink(new_inode); in ext2_rename() 384 inode_dec_link_count(new_inode); in ext2_rename()
|
/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()
|
/fs/ubifs/ |
D | dir.c | 85 inode = new_inode(c->vfs_sb); in ubifs_new_inode() 1290 struct inode *new_inode = d_inode(new_dentry); in do_rename() local 1296 int unlink = !!new_inode, new_sz, old_sz; in do_rename() 1321 ubifs_assert(c, inode_is_locked(new_inode)); in do_rename() 1324 req.dirtied_ino_d = ALIGN(ubifs_inode(new_inode)->data_len, 8); in do_rename() 1325 err = ubifs_purge_xattrs(new_inode); in do_rename() 1331 err = ubifs_check_dir_empty(new_inode); in do_rename() 1412 lock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename() 1461 saved_nlink = new_inode->i_nlink; in do_rename() 1463 clear_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 …]
|
/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() 523 struct inode *new_inode = d_inode(new_dentry); in hpfs_rename() local 544 if (new_inode && S_ISDIR(new_inode->i_mode)) { in hpfs_rename() 557 if (new_inode) { in hpfs_rename() 561 clear_nlink(new_inode); in hpfs_rename()
|
/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()
|
/fs/9p/ |
D | vfs_inode.c | 359 inode = new_inode(sb); in v9fs_get_inode() 925 struct inode *new_inode; in v9fs_vfs_rename() local 938 new_inode = d_inode(new_dentry); in v9fs_vfs_rename() 989 if (new_inode) { in v9fs_vfs_rename() 990 if (S_ISDIR(new_inode->i_mode)) in v9fs_vfs_rename() 991 clear_nlink(new_inode); in v9fs_vfs_rename() 993 v9fs_dec_count(new_inode); in v9fs_vfs_rename() 996 if (!new_inode) in v9fs_vfs_rename()
|
/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()
|
/fs/freevxfs/ |
D | vxfs_inode.c | 170 inode = new_inode(sbp); in vxfs_blkiget() 254 inode = new_inode(sbp); in vxfs_stiget()
|
/fs/afs/ |
D | dir.c | 1878 struct inode *new_inode; in afs_rename_edit_dir() local 1908 new_inode = d_inode(new_dentry); in afs_rename_edit_dir() 1909 if (new_inode) { in afs_rename_edit_dir() 1910 spin_lock(&new_inode->i_lock); in afs_rename_edit_dir() 1911 if (S_ISDIR(new_inode->i_mode)) in afs_rename_edit_dir() 1912 clear_nlink(new_inode); in afs_rename_edit_dir() 1913 else if (new_inode->i_nlink > 0) in afs_rename_edit_dir() 1914 drop_nlink(new_inode); in afs_rename_edit_dir() 1915 spin_unlock(&new_inode->i_lock); in afs_rename_edit_dir()
|
/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()
|
/fs/ntfs3/ |
D | namei.c | 251 struct inode *new_inode = d_inode(new_dentry); in ntfs_rename() local 282 if (new_inode) { in ntfs_rename()
|
/fs/jfs/ |
D | jfs_inode.c | 48 inode = new_inode(sb); in ialloc()
|