/fs/sysv/ |
D | inode.c | 201 set_nlink(inode, fs16_to_cpu(sbi, raw_inode->i_nlink)); in sysv_iget() 255 raw_inode->i_nlink = cpu_to_fs16(sbi, inode->i_nlink); in __sysv_write_inode() 293 if (!inode->i_nlink) { in sysv_evict_inode() 299 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()
|
/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); 409 if (dir->i_nlink == 0) { in reiserfs_get_parent() 965 if (inode->i_nlink != 2 && inode->i_nlink != 1) in reiserfs_rmdir() 968 inode->i_nlink); in reiserfs_rmdir() 1053 if (!inode->i_nlink) { in reiserfs_unlink() 1056 inode->i_ino, inode->i_nlink); in reiserfs_unlink() 1066 savelink = inode->i_nlink; in reiserfs_unlink() 1223 if (inode->i_nlink >= REISERFS_LINK_MAX) { in reiserfs_link() 1598 savelink = new_dentry_inode->i_nlink; in reiserfs_rename()
|
/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() 524 if (ip->i_nlink == 0) { in jfs_unlink() 575 if (ip->i_nlink == 0) in jfs_unlink() 1181 if (new_ip->i_nlink) { in jfs_rename() 1196 } else if (new_ip->i_nlink == 0) { in jfs_rename() 1323 if (new_ip && (new_ip->i_nlink == 0)) in jfs_rename()
|
/fs/gfs2/ |
D | inode.c | 354 if (!dip->i_inode.i_nlink) in create_ok() 359 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok() 950 if (inode->i_nlink == 0) in gfs2_link() 969 if (!dip->i_inode.i_nlink) in gfs2_link() 978 if (!ip->i_inode.i_nlink) in gfs2_link() 981 if (ip->i_inode.i_nlink == (u32)-1) in gfs2_link() 1108 if (inode->i_nlink == 0) in gfs2_unlink_inode() 1160 if (inode->i_nlink == 0) in gfs2_unlink() 1165 if (ip->i_entries > 2 || inode->i_nlink > 2) in gfs2_unlink() 1464 if (ip->i_inode.i_nlink == 0) in gfs2_rename() [all …]
|
/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() 862 if (inode->i_nlink == 2) in ocfs2_inode_is_unlinkable() 867 if (inode->i_nlink == 1) in ocfs2_inode_is_unlinkable() 942 if (inode->i_nlink != 2 || !ocfs2_empty_dir(inode)) { in ocfs2_unlink() 995 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_unlink() 1219 u32 old_dir_nlink = old_dir->i_nlink; in ocfs2_rename() 1300 if (!new_dir->i_nlink) { in ocfs2_rename() [all …]
|
D | inode.c | 898 inode->i_nlink); in ocfs2_query_inode_wipe() 910 if (inode->i_nlink) in ocfs2_query_inode_wipe() 1118 inode->i_nlink); in ocfs2_clear_inode() 1214 if (!inode->i_nlink || in ocfs2_evict_inode() 1231 inode->i_nlink, oi->ip_flags); in ocfs2_drop_inode() 1311 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_mark_inode_dirty()
|
/fs/affs/ |
D | inode.c | 180 if (!inode->i_nlink) in affs_write_inode() 267 inode->i_ino, inode->i_nlink); in affs_evict_inode() 270 if (!inode->i_nlink) { in affs_evict_inode() 289 if (!inode->i_nlink) in affs_evict_inode()
|
/fs/overlayfs/ |
D | inode.c | 271 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr() 954 (int) (inode->i_nlink - realinode->i_nlink)); in ovl_set_nlink_common() 982 if (!lowerdentry || !upperdentry || d_inode(lowerdentry)->i_nlink == 1) in ovl_get_nlink() 999 nlink = d_inode(buf[0] == 'L' ? lowerdentry : upperdentry)->i_nlink; in ovl_get_nlink() 1161 !d_is_dir(lower) && d_inode(lower)->i_nlink > 1) in ovl_hash_bylower() 1212 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; in ovl_get_inode()
|
D | util.c | 840 if (!d_is_dir(lower) && d_inode(lower)->i_nlink > 1) in ovl_need_index() 864 if (!S_ISDIR(inode->i_mode) && inode->i_nlink != 1) { in ovl_cleanup_index() 866 upperdentry, inode->i_ino, inode->i_nlink); in ovl_cleanup_index() 876 set_nlink(d_inode(dentry), inode->i_nlink - 1); in ovl_cleanup_index() 970 if (ovl_test_flag(OVL_INDEX, inode) && inode->i_nlink == 0) { in ovl_nlink_end()
|
/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()
|
/fs/ceph/ |
D | export.c | 174 if (inode->i_nlink == 0) { in ceph_lookup_inode() 196 if ((inode->i_nlink == 0) && !__ceph_is_file_opened(ci)) { in __fh_to_dentry() 265 if (inode->i_nlink == 0) in __snapfh_to_dentry() 384 if (dir->i_nlink == 0) in ceph_get_parent()
|
/fs/erofs/ |
D | erofs_fs.h | 143 __le16 i_nlink; member 198 __le32 i_nlink; member
|
/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()
|
/fs/xfs/scrub/ |
D | parent.c | 155 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate() 230 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate()
|
/fs/ubifs/ |
D | journal.c | 449 int data_len = 0, last_reference = !inode->i_nlink; in pack_inode() 466 ino->nlink = cpu_to_le32(inode->i_nlink); in pack_inode() 544 int last_reference = !!(deletion && inode->i_nlink == 0); in ubifs_jnl_update() 847 int last_reference = !inode->i_nlink; in ubifs_jnl_write_inode() 851 dbg_jnl("ino %lu, nlink %u", inode->i_ino, inode->i_nlink); in ubifs_jnl_write_inode() 1010 ubifs_assert(c, inode->i_nlink == 0); in ubifs_jnl_delete_inode() 1227 int last_reference = !!(new_inode && new_inode->i_nlink == 0); in ubifs_jnl_rename() 1256 ubifs_assert(c, whiteout->i_nlink == 1); in ubifs_jnl_rename() 1725 ubifs_assert(c, inode->i_nlink == 0); in ubifs_jnl_delete_xattr() 1847 ubifs_assert(c, inode->i_nlink > 0); in ubifs_jnl_change_xattr()
|
D | dir.c | 740 inode->i_nlink, dir->i_ino); in ubifs_link() 763 if (inode->i_nlink == 0) in ubifs_link() 786 if (inode->i_nlink == 0) in ubifs_link() 803 unsigned int saved_nlink = inode->i_nlink; in ubifs_unlink() 815 inode->i_nlink, dir->i_ino); in ubifs_unlink() 1462 saved_nlink = new_inode->i_nlink; in do_rename()
|
/fs/xfs/ |
D | xfs_inode.c | 927 if (VFS_I(ip)->i_nlink) in xfs_droplink() 1249 if (VFS_I(sip)->i_nlink == 0) { in xfs_link() 1443 if (VFS_I(ip)->i_nlink == 0) in xfs_release() 1672 if (VFS_I(ip)->i_nlink == 0) in xfs_inode_needs_inactive() 1728 if (VFS_I(ip)->i_nlink != 0) { in xfs_inactive() 1973 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_iunlink() 2274 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_ifree() 2452 ASSERT(VFS_I(ip)->i_nlink >= 2); in xfs_remove() 2453 if (VFS_I(ip)->i_nlink != 2) { in xfs_remove() 2902 (VFS_I(target_ip)->i_nlink > 2))) { in xfs_rename() [all …]
|
/fs/minix/ |
D | inode.c | 31 if (!inode->i_nlink) { in minix_evict_inode() 37 if (!inode->i_nlink) in minix_evict_inode() 594 raw_inode->i_nlinks = inode->i_nlink; in V1_minix_update_inode() 621 raw_inode->i_nlinks = inode->i_nlink; in V2_minix_update_inode()
|
/fs/ecryptfs/ |
D | dentry.c | 46 if (!inode->i_nlink) in ecryptfs_d_revalidate()
|
/fs/ufs/ |
D | inode.c | 572 if (inode->i_nlink == 0) in ufs1_read_inode() 618 if (inode->i_nlink == 0) in ufs2_read_inode() 721 ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); in ufs1_update_inode() 754 if (!inode->i_nlink) in ufs1_update_inode() 765 ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); in ufs2_update_inode() 793 if (!inode->i_nlink) in ufs2_update_inode() 851 if (!inode->i_nlink && !is_bad_inode(inode)) in ufs_evict_inode()
|
/fs/f2fs/ |
D | inode.c | 621 ri->i_links = cpu_to_le32(inode->i_nlink); in f2fs_update_inode() 703 if (inode->i_nlink == 0) in f2fs_update_inode() 784 if ((inode->i_nlink || is_bad_inode(inode)) && in f2fs_evict_inode() 798 if (inode->i_nlink || is_bad_inode(inode)) in f2fs_evict_inode() 879 if (inode->i_nlink) { in f2fs_evict_inode()
|
/fs/ |
D | stack.c | 74 set_nlink(dest, src->i_nlink); in fsstack_copy_attr_all()
|
D | inode.c | 289 if (!inode->i_nlink) { in __destroy_inode() 332 WARN_ON(inode->i_nlink == 0); in drop_nlink() 334 if (!inode->i_nlink) in drop_nlink() 349 if (inode->i_nlink) { in clear_nlink() 370 if (inode->i_nlink == 0) in set_nlink() 388 if (unlikely(inode->i_nlink == 0)) { in inc_nlink() 1810 if (inode->i_nlink && (inode->i_state & I_DIRTY_TIME)) { in iput()
|