Home
last modified time | relevance | path

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

12345

/Linux-v6.1/fs/fat/
Dnamei_vfat.c936 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 …]
Dnamei_msdos.c435 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-v6.1/drivers/android/
Dbinderfs.c151 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-v6.1/fs/f2fs/
Dnamei.c36 inode = new_inode(dir->i_sb); in f2fs_new_inode()
849 struct inode **new_inode) in __f2fs_tmpfile() argument
904 if (new_inode) in __f2fs_tmpfile()
905 *new_inode = inode; in __f2fs_tmpfile()
944 struct inode **new_inode) in f2fs_get_tmpfile() argument
946 return __f2fs_tmpfile(mnt_userns, dir, NULL, S_IFREG, false, new_inode); in f2fs_get_tmpfile()
955 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename() local
982 if (old_dir == new_dir && !new_inode) { in f2fs_rename()
1002 if (new_inode) { in f2fs_rename()
1003 err = f2fs_dquot_initialize(new_inode); in f2fs_rename()
[all …]
/Linux-v6.1/fs/sysv/
Dnamei.c197 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-v6.1/fs/minix/
Dnamei.c193 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-v6.1/fs/ufs/
Dnamei.c251 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-v6.1/fs/exfat/
Dnamei.c1165 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-v6.1/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()
/Linux-v6.1/fs/ext2/
Dnamei.c324 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-v6.1/fs/ocfs2/
Dnamei.c189 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 …]
Dnamei.h28 struct inode **new_inode);
35 struct inode *new_inode,
Dxattr.h82 struct inode *new_inode,
/Linux-v6.1/fs/nilfs2/
Dnamei.c349 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-v6.1/fs/ubifs/
Ddir.c85 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 …]
Djournal.c1218 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-v6.1/fs/hpfs/
Dnamei.c55 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-v6.1/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()
/Linux-v6.1/fs/9p/
Dvfs_inode.c369 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-v6.1/fs/proc/
Dself.c46 struct inode *inode = new_inode(s); in proc_setup_self()
Dthread_self.c46 struct inode *inode = new_inode(s); in proc_setup_thread_self()
/Linux-v6.1/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()
/Linux-v6.1/fs/freevxfs/
Dvxfs_inode.c146 inode = new_inode(sbp); in vxfs_blkiget()
230 inode = new_inode(sbp); in vxfs_stiget()
/Linux-v6.1/fs/jfs/
Djfs_inode.c48 inode = new_inode(sb); in ialloc()
/Linux-v6.1/fs/ntfs3/
Dnamei.c241 struct inode *new_inode = d_inode(new_dentry); in ntfs_rename() local
272 if (new_inode) { in ntfs_rename()

12345