/linux/drivers/android/ |
A D | binderfs.c | 150 inode = new_inode(sb); in binderfs_binder_device_create() 429 inode = new_inode(sb); in binderfs_binder_ctl_create() 484 ret = new_inode(sb); in binderfs_make_inode() 543 if (!new_inode) { in binderfs_create_file() 549 new_inode->i_fop = fops; in binderfs_create_file() 550 new_inode->i_private = data; in binderfs_create_file() 551 d_instantiate(dentry, new_inode); in binderfs_create_file() 575 if (!new_inode) { in binderfs_create_dir() 584 set_nlink(new_inode, 2); in binderfs_create_dir() 585 d_instantiate(dentry, new_inode); in binderfs_create_dir() [all …]
|
/linux/fs/fat/ |
A D | namei_msdos.c | 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() 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() 552 drop_nlink(new_inode); in do_msdos_rename() 574 if (new_inode) { in do_msdos_rename() [all …]
|
A 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() 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() 1006 if (new_inode) { in vfat_rename() [all …]
|
/linux/fs/f2fs/ |
A D | namei.c | 35 inode = new_inode(dir->i_sb); in f2fs_new_inode() 976 if (new_inode) { in f2fs_rename() 999 if (new_inode) { in f2fs_rename() 1025 new_inode->i_ctime = current_time(new_inode); in f2fs_rename() 1029 f2fs_i_links_write(new_inode, false); in f2fs_rename() 1030 up_write(&F2FS_I(new_inode)->i_sem); in f2fs_rename() 1032 if (!new_inode->i_nlink) in f2fs_rename() 1033 f2fs_add_orphan_inode(new_inode); in f2fs_rename() 1176 if (S_ISDIR(new_inode->i_mode)) { in f2fs_cross_rename() 1238 file_lost_pino(new_inode); in f2fs_cross_rename() [all …]
|
/linux/fs/sysv/ |
A 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/fs/minix/ |
A 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/fs/ufs/ |
A 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/fs/exfat/ |
A D | namei.c | 1227 if (new_inode) { in __exfat_rename() 1229 new_ei = EXFAT_I(new_inode); in __exfat_rename() 1278 if (!ret && new_inode) { in __exfat_rename() 1313 i_size_write(new_inode, 0); in __exfat_rename() 1375 if (!new_inode) in exfat_rename() 1386 if (new_inode) { in exfat_rename() 1390 if (new_inode->i_nlink) { in exfat_rename() 1391 drop_nlink(new_inode); in exfat_rename() 1393 drop_nlink(new_inode); in exfat_rename() 1398 new_inode->i_ctime = EXFAT_I(new_inode)->i_crtime = in exfat_rename() [all …]
|
/linux/fs/bfs/ |
A 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/fs/ocfs2/ |
A D | namei.c | 1253 if (new_inode) { in ocfs2_rename() 1254 if (!igrab(new_inode)) in ocfs2_rename() 1420 if (!new_inode) { in ocfs2_rename() 1458 if (S_ISDIR(new_inode->i_mode) || (new_inode->i_nlink == 1)) { in ocfs2_rename() 1589 if (new_inode) { in ocfs2_rename() 1591 new_inode->i_ctime = current_time(new_inode); in ocfs2_rename() 1599 if (new_inode) { in ocfs2_rename() 1608 if (new_inode) { in ocfs2_rename() 1666 if (new_inode) in ocfs2_rename() 1669 iput(new_inode); in ocfs2_rename() [all …]
|
A D | namei.h | 28 struct inode **new_inode); 35 struct inode *new_inode,
|
A D | xattr.h | 82 struct inode *new_inode,
|
/linux/fs/ext2/ |
A 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()
|
/linux/fs/nilfs2/ |
A 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/fs/ubifs/ |
A D | dir.c | 84 inode = new_inode(c->vfs_sb); in ubifs_new_inode() 1262 int unlink = !!new_inode, new_sz, old_sz; in do_rename() 1285 ubifs_assert(c, inode_is_locked(new_inode)); in do_rename() 1287 err = ubifs_purge_xattrs(new_inode); in do_rename() 1293 err = ubifs_check_dir_empty(new_inode); in do_rename() 1399 saved_nlink = new_inode->i_nlink; in do_rename() 1401 clear_nlink(new_inode); in do_rename() 1403 drop_nlink(new_inode); in do_rename() 1404 new_inode->i_ctime = time; in do_rename() 1417 if (unlink && IS_SYNC(new_inode)) in do_rename() [all …]
|
A 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() 1243 if (new_inode) { in ubifs_jnl_rename() 1244 new_ui = ubifs_inode(new_inode); in ubifs_jnl_rename() 1307 if (new_inode) { in ubifs_jnl_rename() 1308 pack_inode(c, p, new_inode, 0); in ubifs_jnl_rename() 1352 if (new_inode) in ubifs_jnl_rename() 1354 new_inode->i_ino); in ubifs_jnl_rename() 1385 if (new_inode) { in ubifs_jnl_rename() 1386 ino_key_init(c, &key, new_inode->i_ino); in ubifs_jnl_rename() [all …]
|
/linux/fs/hpfs/ |
A 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()
|
/linux/fs/udf/ |
A 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/fs/9p/ |
A D | vfs_inode.c | 362 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() 992 if (new_inode) { in v9fs_vfs_rename() 993 if (S_ISDIR(new_inode->i_mode)) in v9fs_vfs_rename() 994 clear_nlink(new_inode); in v9fs_vfs_rename() 996 v9fs_dec_count(new_inode); in v9fs_vfs_rename() 999 if (!new_inode) in v9fs_vfs_rename()
|
/linux/fs/devpts/ |
A 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/fs/freevxfs/ |
A D | vxfs_inode.c | 170 inode = new_inode(sbp); in vxfs_blkiget() 254 inode = new_inode(sbp); in vxfs_stiget()
|
/linux/fs/proc/ |
A D | self.c | 46 struct inode *inode = new_inode(s); in proc_setup_self()
|
A D | thread_self.c | 46 struct inode *inode = new_inode(s); in proc_setup_thread_self()
|
/linux/fs/afs/ |
A D | dir.c | 1823 struct inode *new_inode; in afs_rename_edit_dir() local 1853 new_inode = d_inode(new_dentry); in afs_rename_edit_dir() 1854 if (new_inode) { in afs_rename_edit_dir() 1855 spin_lock(&new_inode->i_lock); in afs_rename_edit_dir() 1856 if (S_ISDIR(new_inode->i_mode)) in afs_rename_edit_dir() 1857 clear_nlink(new_inode); in afs_rename_edit_dir() 1858 else if (new_inode->i_nlink > 0) in afs_rename_edit_dir() 1859 drop_nlink(new_inode); in afs_rename_edit_dir() 1860 spin_unlock(&new_inode->i_lock); in afs_rename_edit_dir()
|
/linux/fs/ntfs3/ |
A D | namei.c | 241 struct inode *new_inode = d_inode(new_dentry); in ntfs_rename() local 272 if (new_inode) { in ntfs_rename()
|