/fs/xfs/scrub/ |
D | parent.c | 37 xfs_nlink_t nlink; member 56 spc->nlink++; in xchk_parent_actor() 74 xfs_nlink_t *nlink) in xchk_parent_count_parent_dentries() argument 119 *nlink = spc.nlink; in xchk_parent_count_parent_dentries() 138 xfs_nlink_t nlink; in xchk_parent_validate() local 193 error = xchk_parent_count_parent_dentries(sc, dp, &nlink); in xchk_parent_validate() 197 if (nlink != expected_nlink) in xchk_parent_validate() 215 error = xchk_parent_count_parent_dentries(sc, dp, &nlink); in xchk_parent_validate() 250 if (nlink != expected_nlink) in xchk_parent_validate()
|
/fs/squashfs/ |
D | squashfs_fs.h | 285 __le32 nlink; member 295 __le32 nlink; member 306 __le32 nlink; member 317 __le32 nlink; member 329 __le32 nlink; member 358 __le32 nlink; member 373 __le32 nlink; member 386 __le32 nlink; member
|
D | inode.c | 198 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode() 227 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode() 252 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode() 279 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode() 321 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode() 345 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode() 366 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode() 385 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode()
|
/fs/overlayfs/ |
D | inode.c | 217 (is_dir || lowerstat.nlink == 1))) { in ovl_getattr() 263 stat->nlink = 1; in ovl_getattr() 272 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr() 750 int nlink; in ovl_get_nlink() local 771 nlink = d_inode(buf[0] == 'L' ? lowerdentry : upperdentry)->i_nlink; in ovl_get_nlink() 772 nlink += nlink_diff; in ovl_get_nlink() 774 if (nlink <= 0) in ovl_get_nlink() 777 return nlink; in ovl_get_nlink() 980 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; in ovl_get_inode() local 1004 nlink = ovl_get_nlink(ofs, lowerdentry, upperdentry, in ovl_get_inode() [all …]
|
/fs/proc/ |
D | generic.c | 142 nlink_t nlink = READ_ONCE(de->nlink); in proc_getattr() local 143 if (nlink > 0) { in proc_getattr() 144 set_nlink(inode, nlink); in proc_getattr() 386 dir->nlink++; in proc_register() 400 nlink_t nlink) in __proc_create() argument 448 ent->nlink = nlink; in __proc_create() 712 parent->nlink--; in remove_proc_entry() 772 next->nlink--; in remove_proc_subtree()
|
D | root.c | 315 stat->nlink = proc_root.nlink + nr_processes(); in proc_root_getattr() 365 .nlink = 2,
|
D | proc_net.c | 303 stat->nlink = net->proc_net->nlink; in proc_tgid_net_getattr() 349 netd->nlink = 2; in proc_net_ns_init()
|
D | internal.h | 55 nlink_t nlink; member
|
D | inode.c | 682 if (de->nlink) in proc_get_inode() 683 set_nlink(inode, de->nlink); in proc_get_inode()
|
/fs/ |
D | stat.c | 41 stat->nlink = inode->i_nlink; in generic_fillattr() 245 tmp.st_nlink = stat->nlink; in cp_old_stat() 246 if (tmp.st_nlink != stat->nlink) in cp_old_stat() 332 tmp.st_nlink = stat->nlink; in cp_new_stat() 333 if (tmp.st_nlink != stat->nlink) in cp_new_stat() 478 tmp.st_nlink = stat->nlink; in cp_new_stat64() 551 tmp.stx_nlink = stat->nlink; in cp_statx() 629 tmp.st_nlink = stat->nlink; in cp_compat_stat() 630 if (tmp.st_nlink != stat->nlink) in cp_compat_stat()
|
/fs/ocfs2/ |
D | ocfs2.h | 562 u32 nlink = le16_to_cpu(di->i_links_count); in ocfs2_read_links_count() local 566 nlink |= (hi << OCFS2_LINKS_HI_SHIFT); in ocfs2_read_links_count() 568 return nlink; in ocfs2_read_links_count() 571 static inline void ocfs2_set_links_count(struct ocfs2_dinode *di, u32 nlink) in ocfs2_set_links_count() argument 575 lo = nlink; in ocfs2_set_links_count() 576 hi = nlink >> OCFS2_LINKS_HI_SHIFT; in ocfs2_set_links_count()
|
/fs/afs/ |
D | inode.c | 73 status->nlink, in afs_inode_init_from_status() 91 set_nlink(&vnode->vfs_inode, status->nlink); in afs_inode_init_from_status() 179 if (status->nlink != vnode->status.nlink) in afs_apply_status() 180 set_nlink(inode, status->nlink); in afs_apply_status() 754 stat->nlink > 0) in afs_getattr() 755 stat->nlink -= 1; in afs_getattr()
|
D | xdr_fs.h | 15 __be32 nlink; member
|
D | afs.h | 141 u32 nlink; /* link count */ member
|
D | protocol_yfs.h | 88 __be32 nlink; member
|
/fs/incfs/ |
D | vfs.c | 1122 struct dentry *backing_dentry, int nlink) in file_delete() argument 1133 if (nlink > 3) in file_delete() 1155 if (d_really_is_positive(index_file_dentry) && nlink > 0) in file_delete() 1156 nlink--; in file_delete() 1158 if (nlink > 2) in file_delete() 1169 if (d_really_is_positive(incomplete_file_dentry) && nlink > 0) in file_delete() 1170 nlink--; in file_delete() 1172 if (nlink > 1) in file_delete() 1237 err = file_delete(mi, dentry, backing_path.dentry, stat.nlink); in dir_unlink()
|
/fs/ubifs/ |
D | debug.c | 419 pr_err("\tnlink %u\n", le32_to_cpu(ino->nlink)); in ubifs_dump_node() 1105 unsigned int nlink = 2; in dbg_check_dir() local 1134 nlink += 1; in dbg_check_dir() 1149 if (dir->i_nlink != nlink) { in dbg_check_dir() 1151 dir->i_ino, dir->i_nlink, nlink); in dbg_check_dir() 1761 unsigned int nlink; member 1839 fscki->nlink = le32_to_cpu(ino->nlink); in add_inode() 1847 fscki->nlink = inode->i_nlink; in add_inode() 2181 if (fscki->calc_cnt != fscki->nlink) { in check_inodes() 2184 fscki->nlink, fscki->calc_cnt); in check_inodes() [all …]
|
D | ubifs-media.h | 526 __le32 nlink; member
|
D | orphan.c | 705 if (err == 0 && ino->nlink == 0) { in do_kill_orphans() 937 if (ci->node->nlink == 0) in dbg_orphan_check()
|
/fs/fuse/ |
D | control.c | 233 int mode, int nlink, in fuse_ctl_add_dentry() argument 260 set_nlink(inode, nlink); in fuse_ctl_add_dentry()
|
/fs/hostfs/ |
D | hostfs.h | 59 unsigned int nlink; member
|
D | hostfs_user.c | 25 p->nlink = buf->st_nlink; in stat64_to_hostfs()
|
/fs/nfsd/ |
D | trace.h | 525 __field(unsigned int, nlink) 531 __entry->nlink = inode->i_nlink; 536 __entry->nlink, __entry->mode, __entry->mask)
|
/fs/btrfs/ |
D | tree-log.c | 1621 unsigned int nlink = 0; in count_inode_extrefs() local 1645 nlink++; in count_inode_extrefs() 1657 return nlink; in count_inode_extrefs() 1665 unsigned int nlink = 0; in count_inode_refs() local 1700 nlink++; in count_inode_refs() 1714 return nlink; in count_inode_refs() 1733 u64 nlink = 0; in fixup_inode_link_count() local 1744 nlink = ret; in fixup_inode_link_count() 1750 nlink += ret; in fixup_inode_link_count() 1754 if (nlink != inode->i_nlink) { in fixup_inode_link_count() [all …]
|
/fs/jffs2/ |
D | gc.c | 131 int ret = 0, inum, nlink; in jffs2_garbage_collect_pass() local 451 nlink = ic->pino_nlink; in jffs2_garbage_collect_pass() 454 f = jffs2_gc_fetch_inode(c, inum, !nlink); in jffs2_garbage_collect_pass()
|