Home
last modified time | relevance | path

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

123

/fs/ocfs2/
Dnamei.c195 inode = new_inode(dir->i_sb); in ocfs2_get_init_inode()
1010 struct inode *new_inode = new_dentry->d_inode; in ocfs2_rename() local
1041 if (new_inode) { in ocfs2_rename()
1042 if (!igrab(new_inode)) in ocfs2_rename()
1124 if (!new_inode && new_dir != old_dir && in ocfs2_rename()
1165 if (!new_de && new_inode) { in ocfs2_rename()
1184 if (!new_inode) { in ocfs2_rename()
1193 if (OCFS2_I(new_inode)->ip_blkno != newfe_blkno) { in ocfs2_rename()
1197 (unsigned long long)OCFS2_I(new_inode)->ip_blkno, in ocfs2_rename()
1199 OCFS2_I(new_inode)->ip_flags); in ocfs2_rename()
[all …]
/fs/fat/
Dnamei_msdos.c452 struct inode *old_inode, *new_inode; in do_msdos_rename() local
460 new_inode = new_dentry->d_inode; in do_msdos_rename()
481 if (!new_inode) { in do_msdos_rename()
511 if (new_inode) { in do_msdos_rename()
515 err = fat_dir_empty(new_inode); in do_msdos_rename()
519 new_i_pos = MSDOS_I(new_inode)->i_pos; in do_msdos_rename()
520 fat_detach(new_inode); in do_msdos_rename()
554 if (!new_inode) in do_msdos_rename()
569 if (new_inode) { in do_msdos_rename()
570 drop_nlink(new_inode); in do_msdos_rename()
[all …]
Dnamei_vfat.c912 struct inode *old_inode, *new_inode; in vfat_rename() local
921 new_inode = new_dentry->d_inode; in vfat_rename()
938 if (new_inode) { in vfat_rename()
940 err = fat_dir_empty(new_inode); in vfat_rename()
944 new_i_pos = MSDOS_I(new_inode)->i_pos; in vfat_rename()
945 fat_detach(new_inode); in vfat_rename()
975 if (!new_inode) in vfat_rename()
990 if (new_inode) { in vfat_rename()
991 drop_nlink(new_inode); in vfat_rename()
993 drop_nlink(new_inode); in vfat_rename()
[all …]
/fs/minix/
Dnamei.c193 struct inode * new_inode = new_dentry->d_inode; in minix_rename() local
211 if (new_inode) { in minix_rename()
216 if (dir_de && !minix_empty_dir(new_inode)) in minix_rename()
225 new_inode->i_ctime = CURRENT_TIME_SEC; in minix_rename()
227 drop_nlink(new_inode); in minix_rename()
228 inode_dec_link_count(new_inode); in minix_rename()
/fs/sysv/
Dnamei.c218 struct inode * new_inode = new_dentry->d_inode; in sysv_rename() local
236 if (new_inode) { in sysv_rename()
241 if (dir_de && !sysv_empty_dir(new_inode)) in sysv_rename()
250 new_inode->i_ctime = CURRENT_TIME_SEC; in sysv_rename()
252 drop_nlink(new_inode); in sysv_rename()
253 inode_dec_link_count(new_inode); in sysv_rename()
/fs/ufs/
Dnamei.c277 struct inode *new_inode = new_dentry->d_inode; in ufs_rename() local
295 if (new_inode) { in ufs_rename()
300 if (dir_de && !ufs_empty_dir(new_inode)) in ufs_rename()
309 new_inode->i_ctime = CURRENT_TIME_SEC; in ufs_rename()
311 drop_nlink(new_inode); in ufs_rename()
312 inode_dec_link_count(new_inode); in ufs_rename()
/fs/hpfs/
Dnamei.c42 result = new_inode(dir->i_sb); in hpfs_mkdir()
146 result = new_inode(dir->i_sb); in hpfs_create()
238 result = new_inode(dir->i_sb); in hpfs_mknod()
316 result = new_inode(dir->i_sb); in hpfs_symlink()
553 struct inode *new_inode = new_dentry->d_inode; in hpfs_rename() local
569 if (new_inode) in hpfs_rename()
570 mutex_lock(&hpfs_i(new_inode)->i_parent_mutex); in hpfs_rename()
576 if (new_inode && S_ISDIR(new_inode->i_mode)) { in hpfs_rename()
589 if (new_inode) { in hpfs_rename()
593 clear_nlink(new_inode); in hpfs_rename()
[all …]
/fs/bfs/
Ddir.c97 inode = new_inode(s); in bfs_create()
224 struct inode *old_inode, *new_inode; in bfs_rename() local
246 new_inode = new_dentry->d_inode; in bfs_rename()
251 if (new_bh && !new_inode) { in bfs_rename()
266 if (new_inode) { in bfs_rename()
267 new_inode->i_ctime = CURRENT_TIME_SEC; in bfs_rename()
268 inode_dec_link_count(new_inode); in bfs_rename()
/fs/ext2/
Dnamei.c292 struct inode * new_inode = new_dentry->d_inode; in ext2_rename() local
310 if (new_inode) { in ext2_rename()
315 if (dir_de && !ext2_empty_dir (new_inode)) in ext2_rename()
324 new_inode->i_ctime = CURRENT_TIME_SEC; in ext2_rename()
326 drop_nlink(new_inode); in ext2_rename()
327 inode_dec_link_count(new_inode); in ext2_rename()
/fs/ubifs/
Ddir.c94 inode = new_inode(c->vfs_sb); in ubifs_new_inode()
972 struct inode *new_inode = new_dentry->d_inode; in ubifs_rename() local
976 int unlink = !!new_inode; in ubifs_rename()
1001 ubifs_assert(mutex_is_locked(&new_inode->i_mutex)); in ubifs_rename()
1005 err = check_dir_empty(c, new_inode); in ubifs_rename()
1019 lock_3_inodes(old_dir, new_dir, new_inode); in ubifs_rename()
1070 drop_nlink(new_inode); in ubifs_rename()
1071 new_inode->i_ctime = time; in ubifs_rename()
1072 drop_nlink(new_inode); in ubifs_rename()
1085 if (unlink && IS_SYNC(new_inode)) in ubifs_rename()
[all …]
Djournal.c908 const struct inode *new_inode = new_dentry->d_inode; in ubifs_jnl_rename() local
910 int last_reference = !!(new_inode && new_inode->i_nlink == 0); in ubifs_jnl_rename()
925 if (new_inode) { in ubifs_jnl_rename()
926 new_ui = ubifs_inode(new_inode); in ubifs_jnl_rename()
973 if (new_inode) { in ubifs_jnl_rename()
974 pack_inode(c, p, new_inode, 0); in ubifs_jnl_rename()
987 err = ubifs_add_orphan(c, new_inode->i_ino); in ubifs_jnl_rename()
1003 if (new_inode) in ubifs_jnl_rename()
1005 new_inode->i_ino); in ubifs_jnl_rename()
1024 if (new_inode) { in ubifs_jnl_rename()
[all …]
/fs/ext4/
Dnamei.c2311 struct inode *old_inode, *new_inode; in ext4_rename() local
2343 new_inode = new_dentry->d_inode; in ext4_rename()
2346 if (!new_inode) { in ext4_rename()
2352 if (new_inode) { in ext4_rename()
2354 if (!empty_dir(new_inode)) in ext4_rename()
2364 if (!new_inode && new_dir != old_dir && in ext4_rename()
2424 if (new_inode) { in ext4_rename()
2425 ext4_dec_count(handle, new_inode); in ext4_rename()
2426 new_inode->i_ctime = ext4_current_time(new_inode); in ext4_rename()
2437 if (new_inode) { in ext4_rename()
[all …]
/fs/udf/
Dnamei.c1105 struct inode *new_inode = new_dentry->d_inode; in udf_rename() local
1128 if (!new_inode) { in udf_rename()
1138 if (new_inode) { in udf_rename()
1140 if (!empty_dir(new_inode)) in udf_rename()
1166 if (!new_inode && in udf_rename()
1197 if (new_inode) { in udf_rename()
1198 new_inode->i_ctime = current_fs_time(new_inode->i_sb); in udf_rename()
1199 inode_dec_link_count(new_inode); in udf_rename()
1215 if (new_inode) in udf_rename()
1216 inode_dec_link_count(new_inode); in udf_rename()
Dialloc.c70 inode = new_inode(sb); in udf_new_inode()
/fs/ext3/
Dnamei.c2265 struct inode * old_inode, * new_inode; in ext3_rename() local
2297 new_inode = new_dentry->d_inode; in ext3_rename()
2300 if (!new_inode) { in ext3_rename()
2306 if (new_inode) { in ext3_rename()
2308 if (!empty_dir (new_inode)) in ext3_rename()
2318 if (!new_inode && new_dir!=old_dir && in ext3_rename()
2378 if (new_inode) { in ext3_rename()
2379 drop_nlink(new_inode); in ext3_rename()
2380 new_inode->i_ctime = CURRENT_TIME_SEC; in ext3_rename()
2391 if (new_inode) { in ext3_rename()
[all …]
/fs/devpts/
Dinode.c184 inode = new_inode(sb); in mknod_ptmx()
293 inode = new_inode(s); in devpts_fill_super()
575 struct inode *inode = new_inode(sb); in devpts_pty_new()
/fs/omfs/
Ddir.c392 struct inode *new_inode = new_dentry->d_inode; in omfs_rename() local
400 if (new_inode) { in omfs_rename()
403 if (is_dir && !omfs_dir_is_empty(new_inode)) in omfs_rename()
/fs/
Danon_inodes.c147 struct inode *inode = new_inode(anon_inode_mnt->mnt_sb); in anon_inode_mkinode()
Dlibfs.c224 root = new_inode(s); in get_sb_pseudo()
429 inode = new_inode(s); in simple_fill_super()
460 inode = new_inode(s); in simple_fill_super()
/fs/nfs/
Ddir.c1577 struct inode *new_inode = new_dentry->d_inode; in nfs_rename() local
1603 if (!new_inode) in nfs_rename()
1605 if (S_ISDIR(new_inode->i_mode)) { in nfs_rename()
1621 new_inode = NULL; in nfs_rename()
1628 nfs_drop_nlink(new_inode); in nfs_rename()
1641 if (new_inode != NULL) { in nfs_rename()
1642 nfs_inode_return_delegation(new_inode); in nfs_rename()
/fs/coda/
Dcnode.c155 *inode = new_inode(sb); in coda_cnode_makectl()
/fs/jfs/
Djfs_inode.c79 inode = new_inode(sb); in ialloc()
/fs/xfs/linux-2.6/
Dxfs_iops.c448 struct inode *new_inode = ndentry->d_inode; in xfs_vn_rename() local
456 XFS_I(ndir), &nname, new_inode ? in xfs_vn_rename()
457 XFS_I(new_inode) : NULL); in xfs_vn_rename()
/fs/ocfs2/dlm/
Ddlmfs.c334 struct inode *inode = new_inode(sb); in dlmfs_get_root_inode()
360 struct inode * inode = new_inode(sb); in dlmfs_get_inode()
/fs/ramfs/
Dinode.c54 struct inode * inode = new_inode(sb); in ramfs_get_inode()

123