/linux-6.12.1/fs/sysv/ |
D | inode.c | 201 set_nlink(inode, fs16_to_cpu(sbi, raw_inode->i_nlink)); in sysv_iget() 252 raw_inode->i_nlink = cpu_to_fs16(sbi, inode->i_nlink); in __sysv_write_inode() 290 if (!inode->i_nlink) { in sysv_evict_inode() 296 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-6.12.1/fs/xfs/libxfs/ |
D | xfs_inode_util.c | 536 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_iunlink() 661 if (inode->i_nlink == 0) { in xfs_droplink() 667 if (inode->i_nlink != XFS_NLINK_PINNED) in xfs_droplink() 672 if (inode->i_nlink) in xfs_droplink() 690 if (inode->i_nlink == XFS_NLINK_PINNED - 1) in xfs_bumplink() 694 if (inode->i_nlink != XFS_NLINK_PINNED) in xfs_bumplink()
|
/linux-6.12.1/fs/jfs/ |
D | inode.c | 85 if (inode->i_nlink == 0 || !test_cflag(COMMIT_Dirty, inode)) in jfs_commit_inode() 107 if (inode->i_nlink && test_cflag(COMMIT_Dirty, inode)) in jfs_commit_inode() 119 if (inode->i_nlink == 0) in jfs_write_inode() 145 if (!inode->i_nlink && !is_bad_inode(inode)) { in jfs_evict_inode()
|
D | namei.c | 513 ASSERT(ip->i_nlink); in jfs_unlink() 525 if (ip->i_nlink == 0) { in jfs_unlink() 576 if (ip->i_nlink == 0) in jfs_unlink() 1182 if (new_ip->i_nlink) { in jfs_rename() 1197 } else if (new_ip->i_nlink == 0) { in jfs_rename() 1325 if (new_ip && (new_ip->i_nlink == 0)) in jfs_rename()
|
/linux-6.12.1/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); 407 if (dir->i_nlink == 0) { in reiserfs_get_parent() 956 if (inode->i_nlink != 2 && inode->i_nlink != 1) in reiserfs_rmdir() 959 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() 1215 if (inode->i_nlink >= REISERFS_LINK_MAX) { in reiserfs_link() 1588 savelink = new_dentry_inode->i_nlink; in reiserfs_rename()
|
/linux-6.12.1/fs/xfs/scrub/ |
D | parent.c | 145 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate() 313 if (VFS_I(sc->ip)->i_nlink == 0) in xchk_parent_pptr_and_dotdot() 717 if (VFS_I(sc->ip)->i_nlink == 0 && pp->pptrs_found > 0) in xchk_parent_count_pptrs() 719 else if (VFS_I(sc->ip)->i_nlink > 0 && in xchk_parent_count_pptrs() 723 if (VFS_I(sc->ip)->i_nlink != pp->pptrs_found) in xchk_parent_count_pptrs() 897 if (inode->i_nlink == 0 && !(inode->i_state & I_LINKABLE)) in xchk_pptr_looks_zapped()
|
D | nlinks.h | 104 if (ip && S_ISDIR(VFS_I(ip)->i_mode) && VFS_I(ip)->i_nlink) in xchk_nlink_total()
|
D | nlinks_repair.c | 168 actual_nlink = VFS_I(ip)->i_nlink; in xrep_nlinks_repair_inode() 217 actual_nlink = VFS_I(ip)->i_nlink; in xrep_nlinks_repair_inode()
|
D | findparent.c | 369 if (sc->ip == sc->mp->m_rootip || VFS_I(sc->ip)->i_nlink == 0) { in xrep_findparent_confirm() 415 if (VFS_I(sc->ip)->i_nlink == 0) in xrep_findparent_self_reference()
|
D | dirtree.h | 166 if (VFS_I(sc->ip)->i_nlink == 0) in xchk_dirtree_parentless()
|
/linux-6.12.1/fs/ocfs2/ |
D | namei.c | 274 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod() 564 ocfs2_set_links_count(fe, inode->i_nlink); in __ocfs2_mknod_locked() 730 if (!dir->i_nlink) { in ocfs2_link() 797 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_link() 863 if (inode->i_nlink == 2) in ocfs2_inode_is_unlinkable() 868 if (inode->i_nlink == 1) in ocfs2_inode_is_unlinkable() 943 if (inode->i_nlink != 2 || !ocfs2_empty_dir(inode)) { in ocfs2_unlink() 996 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_unlink() 1221 u32 old_dir_nlink = old_dir->i_nlink; in ocfs2_rename() 1302 if (!new_dir->i_nlink) { in ocfs2_rename() [all …]
|
/linux-6.12.1/fs/gfs2/ |
D | inode.c | 371 if (!dip->i_inode.i_nlink) in create_ok() 376 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok() 976 if (inode->i_nlink == 0) in gfs2_link() 995 if (!dip->i_inode.i_nlink) in gfs2_link() 1004 if (ip->i_inode.i_nlink == (u32)-1) in gfs2_link() 1131 if (inode->i_nlink == 0) in gfs2_unlink_inode() 1183 if (inode->i_nlink == 0) in gfs2_unlink() 1188 if (ip->i_entries > 2 || inode->i_nlink > 2) in gfs2_unlink() 1487 if (ip->i_inode.i_nlink == 0) in gfs2_rename() 1503 if (nip->i_inode.i_nlink == 0) { in gfs2_rename() [all …]
|
/linux-6.12.1/fs/affs/ |
D | inode.c | 176 if (!inode->i_nlink) in affs_write_inode() 264 inode->i_ino, inode->i_nlink); in affs_evict_inode() 267 if (!inode->i_nlink) { in affs_evict_inode() 286 if (!inode->i_nlink) in affs_evict_inode()
|
/linux-6.12.1/fs/overlayfs/ |
D | inode.c | 280 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr() 978 (int) (inode->i_nlink - realinode->i_nlink)); in ovl_set_nlink_common() 1006 if (!lowerdentry || !upperdentry || d_inode(lowerdentry)->i_nlink == 1) in ovl_get_nlink() 1023 nlink = d_inode(buf[0] == 'L' ? lowerdentry : upperdentry)->i_nlink; in ovl_get_nlink() 1185 !d_is_dir(lower) && d_inode(lower)->i_nlink > 1) in ovl_hash_bylower() 1236 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; in ovl_get_inode()
|
/linux-6.12.1/fs/bfs/ |
D | inode.c | 80 set_nlink(inode, le32_to_cpu(di->i_nlink)); in bfs_iget() 140 di->i_nlink = cpu_to_le32(inode->i_nlink); in bfs_write_inode() 175 if (inode->i_nlink) in bfs_evict_inode()
|
/linux-6.12.1/fs/ecryptfs/ |
D | dentry.c | 46 if (!inode->i_nlink) in ecryptfs_d_revalidate()
|
/linux-6.12.1/fs/erofs/ |
D | erofs_fs.h | 162 __le16 i_nlink; member 189 __le32 i_nlink; member
|
/linux-6.12.1/fs/ceph/ |
D | export.c | 177 if (inode->i_nlink == 0) { in ceph_lookup_inode() 199 if ((inode->i_nlink == 0) && !__ceph_is_file_opened(ci)) { in __fh_to_dentry() 269 if (inode->i_nlink == 0) in __snapfh_to_dentry() 387 if (dir->i_nlink == 0) in ceph_get_parent()
|
/linux-6.12.1/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() 313 if (!inode->i_nlink) { in hpfs_evict_inode()
|
/linux-6.12.1/fs/ |
D | stack.c | 74 set_nlink(dest, src->i_nlink); in fsstack_copy_attr_all()
|
/linux-6.12.1/fs/ubifs/ |
D | journal.c | 576 int data_len = 0, last_reference = !inode->i_nlink; in pack_inode() 593 ino->nlink = cpu_to_le32(inode->i_nlink); in pack_inode() 672 int last_reference = !!(deletion && inode->i_nlink == 0); in ubifs_jnl_update() 810 if (in_orphan && inode->i_nlink) in ubifs_jnl_update() 978 int last_reference = !inode->i_nlink; in ubifs_jnl_write_inode() 982 dbg_jnl("ino %lu, nlink %u", inode->i_ino, inode->i_nlink); in ubifs_jnl_write_inode() 1141 ubifs_assert(c, inode->i_nlink == 0); in ubifs_jnl_delete_inode() 1363 int last_reference = !!(new_inode && new_inode->i_nlink == 0); in ubifs_jnl_rename() 1392 ubifs_assert(c, whiteout->i_nlink == 1); in ubifs_jnl_rename() 1865 ubifs_assert(c, inode->i_nlink == 0); in ubifs_jnl_delete_xattr() [all …]
|
/linux-6.12.1/include/uapi/linux/ |
D | bfs_fs.h | 34 __le32 i_nlink; member
|
/linux-6.12.1/fs/ufs/ |
D | inode.c | 575 if (inode->i_nlink == 0) in ufs1_read_inode() 624 if (inode->i_nlink == 0) in ufs2_read_inode() 727 ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); in ufs1_update_inode() 763 if (!inode->i_nlink) in ufs1_update_inode() 774 ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); in ufs2_update_inode() 805 if (!inode->i_nlink) in ufs2_update_inode() 863 if (!inode->i_nlink && !is_bad_inode(inode)) in ufs_evict_inode()
|
/linux-6.12.1/fs/minix/ |
D | inode.c | 32 if (!inode->i_nlink) { in minix_evict_inode() 38 if (!inode->i_nlink) in minix_evict_inode() 610 raw_inode->i_nlinks = inode->i_nlink; in V1_minix_update_inode() 637 raw_inode->i_nlinks = inode->i_nlink; in V2_minix_update_inode()
|