Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/drivers/android/
Dbinderfs.c142 inode = new_inode(sb); in binderfs_binder_device_create()
407 inode = new_inode(sb); in binderfs_binder_ctl_create()
462 ret = new_inode(sb); in binderfs_make_inode()
509 struct inode *new_inode, *parent_inode; in binderfs_create_file() local
520 new_inode = binderfs_make_inode(sb, S_IFREG | 0444); in binderfs_create_file()
521 if (!new_inode) { in binderfs_create_file()
527 new_inode->i_fop = fops; in binderfs_create_file()
528 new_inode->i_private = data; in binderfs_create_file()
529 d_instantiate(dentry, new_inode); in binderfs_create_file()
541 struct inode *new_inode, *parent_inode; in binderfs_create_dir() local
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/fs/f2fs/
Dnamei.c35 inode = new_inode(dir->i_sb); in f2fs_new_inode()
919 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename() local
946 if (old_dir == new_dir && !new_inode) { in f2fs_rename()
966 if (new_inode) { in f2fs_rename()
967 err = dquot_initialize(new_inode); in f2fs_rename()
989 if (new_inode) { in f2fs_rename()
992 if (old_dir_entry && !f2fs_empty_dir(new_inode)) in f2fs_rename()
1015 new_inode->i_ctime = current_time(new_inode); in f2fs_rename()
1016 down_write(&F2FS_I(new_inode)->i_sem); in f2fs_rename()
1018 f2fs_i_links_write(new_inode, false); in f2fs_rename()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/exfat/
Dnamei.c1197 struct inode *new_inode = new_dentry->d_inode; in __exfat_rename() local
1226 if (new_inode) { in __exfat_rename()
1228 new_ei = EXFAT_I(new_inode); in __exfat_rename()
1252 EXFAT_B_TO_CLU_ROUND_UP(i_size_read(new_inode), in __exfat_rename()
1277 if (!ret && new_inode) { in __exfat_rename()
1292 if (exfat_remove_entries(new_inode, p_dir, new_entry, 0, in __exfat_rename()
1304 EXFAT_B_TO_CLU_ROUND_UP(i_size_read(new_inode), in __exfat_rename()
1307 if (exfat_free_cluster(new_inode, &new_clu_to_free)) { in __exfat_rename()
1312 i_size_write(new_inode, 0); in __exfat_rename()
1332 struct inode *old_inode, *new_inode; in exfat_rename() local
[all …]
/kernel/linux/linux-5.10/fs/ext2/
Dnamei.c323 struct inode * new_inode = d_inode(new_dentry); in ext2_rename() local
354 if (new_inode) { in ext2_rename()
359 if (dir_de && !ext2_empty_dir (new_inode)) in ext2_rename()
368 new_inode->i_ctime = current_time(new_inode); in ext2_rename()
370 drop_nlink(new_inode); in ext2_rename()
371 inode_dec_link_count(new_inode); in ext2_rename()
/kernel/linux/linux-5.10/fs/ocfs2/
Dnamei.c190 inode = new_inode(dir->i_sb); in ocfs2_get_init_inode()
1205 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename() local
1248 if (new_inode) { in ocfs2_rename()
1249 if (!igrab(new_inode)) in ocfs2_rename()
1353 if (!new_inode && new_dir != old_dir && in ocfs2_rename()
1396 if (!target_exists && new_inode) { in ocfs2_rename()
1415 if (!new_inode) { in ocfs2_rename()
1423 if (OCFS2_I(new_inode)->ip_blkno != newfe_blkno) { in ocfs2_rename()
1427 (unsigned long long)OCFS2_I(new_inode)->ip_blkno, in ocfs2_rename()
1429 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,
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/ubifs/
Ddir.c84 inode = new_inode(c->vfs_sb); in ubifs_new_inode()
1289 struct inode *new_inode = d_inode(new_dentry); in do_rename() local
1295 int unlink = !!new_inode, new_sz, old_sz; in do_rename()
1320 ubifs_assert(c, inode_is_locked(new_inode)); in do_rename()
1323 req.dirtied_ino_d = ALIGN(ubifs_inode(new_inode)->data_len, 8); in do_rename()
1324 err = ubifs_purge_xattrs(new_inode); in do_rename()
1330 err = ubifs_check_dir_empty(new_inode); in do_rename()
1411 lock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1460 saved_nlink = new_inode->i_nlink; in do_rename()
1462 clear_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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/9p/
Dvfs_inode.c356 inode = new_inode(sb); in v9fs_get_inode()
903 struct inode *new_inode; in v9fs_vfs_rename() local
916 new_inode = d_inode(new_dentry); in v9fs_vfs_rename()
960 if (new_inode) { in v9fs_vfs_rename()
961 if (S_ISDIR(new_inode->i_mode)) in v9fs_vfs_rename()
962 clear_nlink(new_inode); in v9fs_vfs_rename()
964 v9fs_dec_count(new_inode); in v9fs_vfs_rename()
967 if (!new_inode) in v9fs_vfs_rename()
/kernel/linux/linux-5.10/fs/udf/
Dnamei.c1080 struct inode *new_inode = d_inode(new_dentry); in udf_rename() local
1112 if (nfi && !new_inode) { in udf_rename()
1121 if (new_inode) { in udf_rename()
1123 if (!empty_dir(new_inode)) in udf_rename()
1174 if (new_inode) { in udf_rename()
1175 new_inode->i_ctime = current_time(new_inode); in udf_rename()
1176 inode_dec_link_count(new_inode); in udf_rename()
1192 if (new_inode) in udf_rename()
1193 inode_dec_link_count(new_inode); in udf_rename()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/freevxfs/
Dvxfs_inode.c170 inode = new_inode(sbp); in vxfs_blkiget()
254 inode = new_inode(sbp); in vxfs_stiget()
/kernel/linux/linux-5.10/fs/epfs/
Dinode.c93 struct inode *inode = new_inode(sb); in epfs_iget()
/kernel/linux/linux-5.10/fs/jfs/
Djfs_inode.c48 inode = new_inode(sb); in ialloc()

12345