Home
last modified time | relevance | path

Searched refs:i_nlink (Results 1 – 25 of 93) sorted by relevance

1234

/fs/sysv/
Dinode.c202 set_nlink(inode, fs16_to_cpu(sbi, raw_inode->i_nlink)); in sysv_iget()
256 raw_inode->i_nlink = cpu_to_fs16(sbi, inode->i_nlink); in __sysv_write_inode()
294 if (!inode->i_nlink) { in sysv_evict_inode()
300 if (!inode->i_nlink) in sysv_evict_inode()
Dialloc.c82 if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) { in refill_free_cache()
202 if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) in sysv_count_free_inodes()
/fs/jfs/
Dinode.c96 if (inode->i_nlink == 0 || !test_cflag(COMMIT_Dirty, inode)) in jfs_commit_inode()
118 if (inode->i_nlink && test_cflag(COMMIT_Dirty, inode)) in jfs_commit_inode()
130 if (inode->i_nlink == 0) in jfs_write_inode()
154 if (!inode->i_nlink && !is_bad_inode(inode)) { in jfs_evict_inode()
Dnamei.c527 ASSERT(ip->i_nlink); in jfs_unlink()
538 if (ip->i_nlink == 0) { in jfs_unlink()
589 if (ip->i_nlink == 0) in jfs_unlink()
1187 if (new_ip->i_nlink) { in jfs_rename()
1202 } else if (new_ip->i_nlink == 0) { in jfs_rename()
1329 if (new_ip && (new_ip->i_nlink == 0)) in jfs_rename()
/fs/reiserfs/
Dnamei.c22 #define INC_DIR_INODE_NLINK(i) if (i->i_nlink != 1) { inc_nlink(i); if (i->i_nlink >= REISERFS_LINK…
23 #define DEC_DIR_INODE_NLINK(i) if (i->i_nlink != 1) drop_nlink(i);
405 if (dir->i_nlink == 0) { in reiserfs_get_parent()
957 if (inode->i_nlink != 2 && inode->i_nlink != 1) in reiserfs_rmdir()
960 inode->i_nlink); in reiserfs_rmdir()
1045 if (!inode->i_nlink) { in reiserfs_unlink()
1048 inode->i_ino, inode->i_nlink); in reiserfs_unlink()
1058 savelink = inode->i_nlink; in reiserfs_unlink()
1212 if (inode->i_nlink >= REISERFS_LINK_MAX) { in reiserfs_link()
1582 savelink = new_dentry_inode->i_nlink; in reiserfs_rename()
/fs/gfs2/
Dinode.c346 if (!dip->i_inode.i_nlink) in create_ok()
351 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok()
917 if (inode->i_nlink == 0) in gfs2_link()
935 if (!dip->i_inode.i_nlink) in gfs2_link()
944 if (!ip->i_inode.i_nlink) in gfs2_link()
947 if (ip->i_inode.i_nlink == (u32)-1) in gfs2_link()
1073 if (inode->i_nlink == 0) in gfs2_unlink_inode()
1125 if (inode->i_nlink == 0) in gfs2_unlink()
1130 if (ip->i_entries > 2 || inode->i_nlink > 2) in gfs2_unlink()
1421 if (ip->i_inode.i_nlink == 0) in gfs2_rename()
[all …]
/fs/ocfs2/
Dnamei.c284 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod()
562 ocfs2_set_links_count(fe, inode->i_nlink); in __ocfs2_mknod_locked()
735 if (!dir->i_nlink) { in ocfs2_link()
802 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_link()
867 if (inode->i_nlink == 2) in ocfs2_inode_is_unlinkable()
872 if (inode->i_nlink == 1) in ocfs2_inode_is_unlinkable()
947 if (inode->i_nlink != 2 || !ocfs2_empty_dir(inode)) { in ocfs2_unlink()
1000 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_unlink()
1222 u32 old_dir_nlink = old_dir->i_nlink; in ocfs2_rename()
1300 if (!new_dir->i_nlink) { in ocfs2_rename()
[all …]
Dinode.c875 inode->i_nlink); in ocfs2_query_inode_wipe()
887 if (inode->i_nlink) in ocfs2_query_inode_wipe()
1095 inode->i_nlink); in ocfs2_clear_inode()
1188 if (!inode->i_nlink || in ocfs2_evict_inode()
1205 inode->i_nlink, oi->ip_flags); in ocfs2_drop_inode()
1285 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_mark_inode_dirty()
/fs/ubifs/
Djournal.c460 int data_len = 0, last_reference = !inode->i_nlink; in pack_inode()
477 ino->nlink = cpu_to_le32(inode->i_nlink); in pack_inode()
547 int last_reference = !!(deletion && inode->i_nlink == 0); in ubifs_jnl_update()
794 int sync = 0, len = UBIFS_INO_NODE_SZ, last_reference = !inode->i_nlink; in ubifs_jnl_write_inode()
796 dbg_jnl("ino %lu, nlink %u", inode->i_ino, inode->i_nlink); in ubifs_jnl_write_inode()
890 ubifs_assert(inode->i_nlink == 0); in ubifs_jnl_delete_inode()
941 int last_reference = !!(new_inode && new_inode->i_nlink == 0); in ubifs_jnl_rename()
1313 ubifs_assert(inode->i_nlink == 0); in ubifs_jnl_delete_xattr()
1423 ubifs_assert(host->i_nlink > 0); in ubifs_jnl_change_xattr()
1424 ubifs_assert(inode->i_nlink > 0); in ubifs_jnl_change_xattr()
Ddir.c523 inode->i_nlink, dir->i_ino); in ubifs_link()
569 unsigned int saved_nlink = inode->i_nlink; in ubifs_unlink()
580 inode->i_nlink, dir->i_ino); in ubifs_unlink()
1075 saved_nlink = new_inode->i_nlink; in ubifs_rename()
/fs/affs/
Dinode.c176 if (!inode->i_nlink) in affs_write_inode()
261 inode->i_ino, inode->i_nlink); in affs_evict_inode()
264 if (!inode->i_nlink) { in affs_evict_inode()
283 if (!inode->i_nlink) in affs_evict_inode()
/fs/bfs/
Dinode.c80 set_nlink(inode, le32_to_cpu(di->i_nlink)); in bfs_iget()
143 di->i_nlink = cpu_to_le32(inode->i_nlink); in bfs_write_inode()
178 if (inode->i_nlink) in bfs_evict_inode()
Ddir.c189 if (!inode->i_nlink) { in bfs_unlink()
192 inode->i_nlink); in bfs_unlink()
/fs/hpfs/
Dinode.c191 if (!i->i_nlink) { in hpfs_write_inode()
216 if (i->i_ino != hpfs_sb(i->i_sb)->sb_root && i->i_nlink) { in hpfs_write_inode_nolock()
310 if (!inode->i_nlink) { in hpfs_evict_inode()
/fs/ufs/
Dinode.c556 if (inode->i_nlink == 0) { in ufs1_read_inode()
604 if (inode->i_nlink == 0) { in ufs2_read_inode()
710 ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); in ufs1_update_inode()
743 if (!inode->i_nlink) in ufs1_update_inode()
754 ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); in ufs2_update_inode()
782 if (!inode->i_nlink) in ufs2_update_inode()
840 if (!inode->i_nlink && !is_bad_inode(inode)) in ufs_evict_inode()
/fs/
Dinode.c236 if (!inode->i_nlink) { in __destroy_inode()
280 WARN_ON(inode->i_nlink == 0); in drop_nlink()
282 if (!inode->i_nlink) in drop_nlink()
297 if (inode->i_nlink) { in clear_nlink()
318 if (inode->i_nlink == 0) in set_nlink()
336 if (unlikely(inode->i_nlink == 0)) { in inc_nlink()
1503 if (inode->i_nlink && (inode->i_state & I_DIRTY_TIME)) { in iput()
Dstack.c74 set_nlink(dest, src->i_nlink); in fsstack_copy_attr_all()
/fs/ecryptfs/
Ddentry.c60 if (!inode->i_nlink) in ecryptfs_d_revalidate()
Dinode.c159 set_nlink(inode, ecryptfs_inode_to_lower(inode)->i_nlink); in ecryptfs_do_unlink()
482 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link()
552 set_nlink(dir, d_inode(lower_dir_dentry)->i_nlink); in ecryptfs_mkdir()
575 set_nlink(dir, d_inode(lower_dir_dentry)->i_nlink); in ecryptfs_rmdir()
/fs/ext4/
Dialloc.c257 if (inode->i_nlink) { in ext4_free_inode()
259 __func__, __LINE__, inode->i_ino, inode->i_nlink); in ext4_free_inode()
744 if (!dir || !dir->i_nlink) in __ext4_new_inode()
1166 if ((inode->i_nlink && !ext4_can_truncate(inode)) || in ext4_orphan_get()
1187 printk(KERN_ERR "i_nlink=%u\n", inode->i_nlink); in ext4_orphan_get()
1189 if (inode->i_nlink == 0) in ext4_orphan_get()
Dnamei.c2395 if (is_dx(inode) && inode->i_nlink > 1) { in ext4_inc_count()
2397 if (inode->i_nlink >= EXT4_LINK_MAX || inode->i_nlink == 2) { in ext4_inc_count()
2410 if (!S_ISDIR(inode->i_mode) || inode->i_nlink > 2) in ext4_dec_count()
2780 S_ISLNK(inode->i_mode)) || inode->i_nlink == 0); in ext4_orphan_add()
2967 inode->i_nlink); in ext4_rmdir()
3036 if (inode->i_nlink == 0) in ext4_unlink()
3041 if (!inode->i_nlink) in ext4_unlink()
3217 if (inode->i_nlink >= EXT4_LINK_MAX) in ext4_link()
3246 if (inode->i_nlink == 1) in ext4_link()
3448 ent->dir->i_nlink, retval); in ext4_rename_delete()
[all …]
/fs/f2fs/
Dinode.c392 ri->i_links = cpu_to_le32(inode->i_nlink); in update_inode()
448 if (inode->i_nlink == 0) in update_inode()
523 if (inode->i_nlink || is_bad_inode(inode)) in f2fs_evict_inode()
581 if (inode->i_nlink) { in f2fs_evict_inode()
/fs/minix/
Dinode.c30 if (!inode->i_nlink) { in minix_evict_inode()
36 if (!inode->i_nlink) in minix_evict_inode()
595 raw_inode->i_nlinks = inode->i_nlink; in V1_minix_update_inode()
622 raw_inode->i_nlinks = inode->i_nlink; in V2_minix_update_inode()
/fs/sdcardfs/
Dinode.c172 sdcardfs_lower_inode(d_inode(dentry))->i_nlink); in sdcardfs_unlink()
299 set_nlink(dir, sdcardfs_lower_inode(dir)->i_nlink); in sdcardfs_mkdir()
380 set_nlink(dir, d_inode(lower_dir_dentry)->i_nlink); in sdcardfs_rmdir()
738 stat->nlink = inode->i_nlink; in sdcardfs_fillattr()
/fs/coda/
Ddir.c123 if (dir->i_nlink >= 2) in coda_dir_inc_nlink()
129 if (dir->i_nlink > 2) in coda_dir_drop_nlink()

1234