/linux-4.19.296/fs/sysv/ |
D | inode.c | 202 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()
|
D | ialloc.c | 83 if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) { in refill_free_cache() 203 if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) in sysv_count_free_inodes()
|
/linux-4.19.296/fs/jfs/ |
D | inode.c | 97 if (inode->i_nlink == 0 || !test_cflag(COMMIT_Dirty, inode)) in jfs_commit_inode() 119 if (inode->i_nlink && test_cflag(COMMIT_Dirty, inode)) in jfs_commit_inode() 131 if (inode->i_nlink == 0) in jfs_write_inode() 155 if (!inode->i_nlink && !is_bad_inode(inode)) { in jfs_evict_inode()
|
D | namei.c | 525 ASSERT(ip->i_nlink); in jfs_unlink() 536 if (ip->i_nlink == 0) { in jfs_unlink() 587 if (ip->i_nlink == 0) in jfs_unlink() 1193 if (new_ip->i_nlink) { in jfs_rename() 1208 } else if (new_ip->i_nlink == 0) { in jfs_rename() 1335 if (new_ip && (new_ip->i_nlink == 0)) in jfs_rename()
|
/linux-4.19.296/fs/reiserfs/ |
D | namei.c | 22 #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); 408 if (dir->i_nlink == 0) { in reiserfs_get_parent() 963 if (inode->i_nlink != 2 && inode->i_nlink != 1) in reiserfs_rmdir() 966 inode->i_nlink); in reiserfs_rmdir() 1051 if (!inode->i_nlink) { in reiserfs_unlink() 1054 inode->i_ino, inode->i_nlink); in reiserfs_unlink() 1064 savelink = inode->i_nlink; in reiserfs_unlink() 1220 if (inode->i_nlink >= REISERFS_LINK_MAX) { in reiserfs_link() 1594 savelink = new_dentry_inode->i_nlink; in reiserfs_rename()
|
/linux-4.19.296/fs/overlayfs/ |
D | inode.c | 266 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr() 653 (int) (inode->i_nlink - realinode->i_nlink)); in ovl_set_nlink_common() 681 if (!lowerdentry || !upperdentry || d_inode(lowerdentry)->i_nlink == 1) in ovl_get_nlink() 697 nlink = d_inode(buf[0] == 'L' ? lowerdentry : upperdentry)->i_nlink; in ovl_get_nlink() 859 !d_is_dir(lower) && d_inode(lower)->i_nlink > 1) in ovl_hash_bylower() 905 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; in ovl_get_inode()
|
D | util.c | 683 if (!d_is_dir(lower) && d_inode(lower)->i_nlink > 1) in ovl_need_index() 706 if (!S_ISDIR(inode->i_mode) && inode->i_nlink != 1) { in ovl_cleanup_index() 708 upperdentry, inode->i_ino, inode->i_nlink); in ovl_cleanup_index() 718 set_nlink(d_inode(dentry), inode->i_nlink - 1); in ovl_cleanup_index() 813 d_inode(dentry)->i_nlink == 0) { in ovl_nlink_end()
|
/linux-4.19.296/fs/gfs2/ |
D | inode.c | 342 if (!dip->i_inode.i_nlink) in create_ok() 347 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok() 928 if (inode->i_nlink == 0) in gfs2_link() 946 if (!dip->i_inode.i_nlink) in gfs2_link() 955 if (!ip->i_inode.i_nlink) in gfs2_link() 958 if (ip->i_inode.i_nlink == (u32)-1) in gfs2_link() 1084 if (inode->i_nlink == 0) in gfs2_unlink_inode() 1136 if (inode->i_nlink == 0) in gfs2_unlink() 1141 if (ip->i_entries > 2 || inode->i_nlink > 2) in gfs2_unlink() 1421 if (ip->i_inode.i_nlink == 0) in gfs2_rename() [all …]
|
/linux-4.19.296/fs/ecryptfs/ |
D | dentry.c | 60 if (!inode->i_nlink) in ecryptfs_d_revalidate()
|
/linux-4.19.296/fs/ocfs2/ |
D | namei.c | 286 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod() 569 ocfs2_set_links_count(fe, inode->i_nlink); in __ocfs2_mknod_locked() 734 if (!dir->i_nlink) { in ocfs2_link() 801 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_link() 866 if (inode->i_nlink == 2) in ocfs2_inode_is_unlinkable() 871 if (inode->i_nlink == 1) in ocfs2_inode_is_unlinkable() 946 if (inode->i_nlink != 2 || !ocfs2_empty_dir(inode)) { in ocfs2_unlink() 999 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_unlink() 1222 u32 old_dir_nlink = old_dir->i_nlink; in ocfs2_rename() 1303 if (!new_dir->i_nlink) { in ocfs2_rename() [all …]
|
D | inode.c | 914 inode->i_nlink); in ocfs2_query_inode_wipe() 926 if (inode->i_nlink) in ocfs2_query_inode_wipe() 1134 inode->i_nlink); in ocfs2_clear_inode() 1230 if (!inode->i_nlink || in ocfs2_evict_inode() 1247 inode->i_nlink, oi->ip_flags); in ocfs2_drop_inode() 1327 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_mark_inode_dirty()
|
/linux-4.19.296/fs/affs/ |
D | inode.c | 180 if (!inode->i_nlink) in affs_write_inode() 266 inode->i_ino, inode->i_nlink); in affs_evict_inode() 269 if (!inode->i_nlink) { in affs_evict_inode() 288 if (!inode->i_nlink) in affs_evict_inode()
|
/linux-4.19.296/fs/ |
D | stack.c | 74 set_nlink(dest, src->i_nlink); in fsstack_copy_attr_all()
|
D | inode.c | 241 if (!inode->i_nlink) { in __destroy_inode() 285 WARN_ON(inode->i_nlink == 0); in drop_nlink() 287 if (!inode->i_nlink) in drop_nlink() 302 if (inode->i_nlink) { in clear_nlink() 323 if (inode->i_nlink == 0) in set_nlink() 341 if (unlikely(inode->i_nlink == 0)) { in inc_nlink() 1573 if (inode->i_nlink && (inode->i_state & I_DIRTY_TIME)) { in iput()
|
/linux-4.19.296/fs/bfs/ |
D | inode.c | 80 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()
|
D | dir.c | 182 if (!inode->i_nlink) { in bfs_unlink() 185 inode->i_nlink); in bfs_unlink()
|
/linux-4.19.296/fs/ubifs/ |
D | journal.c | 450 int data_len = 0, last_reference = !inode->i_nlink; in pack_inode() 467 ino->nlink = cpu_to_le32(inode->i_nlink); in pack_inode() 545 int last_reference = !!(deletion && inode->i_nlink == 0); in ubifs_jnl_update() 811 int sync = 0, len = UBIFS_INO_NODE_SZ, last_reference = !inode->i_nlink; in ubifs_jnl_write_inode() 813 dbg_jnl("ino %lu, nlink %u", inode->i_ino, inode->i_nlink); in ubifs_jnl_write_inode() 907 ubifs_assert(c, inode->i_nlink == 0); in ubifs_jnl_delete_inode() 1101 int last_reference = !!(new_inode && new_inode->i_nlink == 0); in ubifs_jnl_rename() 1505 ubifs_assert(c, inode->i_nlink == 0); in ubifs_jnl_delete_xattr() 1615 ubifs_assert(c, host->i_nlink > 0); in ubifs_jnl_change_xattr() 1616 ubifs_assert(c, inode->i_nlink > 0); in ubifs_jnl_change_xattr()
|
/linux-4.19.296/fs/xfs/scrub/ |
D | parent.c | 149 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate() 224 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate()
|
/linux-4.19.296/include/uapi/linux/ |
D | bfs_fs.h | 34 __le32 i_nlink; member
|
/linux-4.19.296/fs/hpfs/ |
D | inode.c | 193 if (!i->i_nlink) { in hpfs_write_inode() 218 if (i->i_ino != hpfs_sb(i->i_sb)->sb_root && i->i_nlink) { in hpfs_write_inode_nolock() 312 if (!inode->i_nlink) { in hpfs_evict_inode()
|
/linux-4.19.296/fs/minix/ |
D | inode.c | 30 if (!inode->i_nlink) { in minix_evict_inode() 36 if (!inode->i_nlink) in minix_evict_inode() 597 raw_inode->i_nlinks = inode->i_nlink; in V1_minix_update_inode() 624 raw_inode->i_nlinks = inode->i_nlink; in V2_minix_update_inode()
|
/linux-4.19.296/fs/ext4/ |
D | ialloc.c | 257 if (inode->i_nlink) { in ext4_free_inode() 259 __func__, __LINE__, inode->i_ino, inode->i_nlink); in ext4_free_inode() 767 if (!dir || !dir->i_nlink) in __ext4_new_inode() 1246 if ((inode->i_nlink && !ext4_can_truncate(inode)) || in ext4_orphan_get() 1267 printk(KERN_ERR "i_nlink=%u\n", inode->i_nlink); in ext4_orphan_get() 1269 if (inode->i_nlink == 0) in ext4_orphan_get()
|
/linux-4.19.296/fs/ufs/ |
D | inode.c | 571 if (inode->i_nlink == 0) in ufs1_read_inode() 617 if (inode->i_nlink == 0) in ufs2_read_inode() 720 ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); in ufs1_update_inode() 753 if (!inode->i_nlink) in ufs1_update_inode() 764 ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); in ufs2_update_inode() 792 if (!inode->i_nlink) in ufs2_update_inode() 850 if (!inode->i_nlink && !is_bad_inode(inode)) in ufs_evict_inode()
|
/linux-4.19.296/fs/f2fs/ |
D | inode.c | 515 ri->i_links = cpu_to_le32(inode->i_nlink); in f2fs_update_inode() 576 if (inode->i_nlink == 0) in f2fs_update_inode() 659 if (inode->i_nlink || is_bad_inode(inode)) in f2fs_evict_inode() 716 if (inode->i_nlink) { in f2fs_evict_inode()
|
/linux-4.19.296/include/linux/ |
D | sysv_fs.h | 194 __fs16 i_nlink; member
|