Home
last modified time | relevance | path

Searched refs:nlink (Results 1 - 25 of 158) sorted by relevance

1234567

/kernel/linux/linux-5.10/fs/xfs/scrub/
H A Dparent.c37 xfs_nlink_t nlink; member
56 spc->nlink++; in xchk_parent_actor()
74 xfs_nlink_t *nlink) in xchk_parent_count_parent_dentries()
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 ! in xchk_parent_validate()
71 xchk_parent_count_parent_dentries( struct xfs_scrub *sc, struct xfs_inode *parent, xfs_nlink_t *nlink) xchk_parent_count_parent_dentries() argument
[all...]
/kernel/linux/linux-5.10/fs/squashfs/
H A Dsquashfs_fs.h285 __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
H A Dinode.c201 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode()
230 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode()
255 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode()
288 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode()
329 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode()
353 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode()
374 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode()
393 set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); in squashfs_read_inode()
/kernel/linux/linux-6.6/fs/squashfs/
H A Dsquashfs_fs.h285 __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
H A Dinode.c198 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()
/kernel/linux/linux-6.6/fs/xfs/scrub/
H A Dparent.c35 xfs_nlink_t nlink; member
58 spc->nlink++; in xchk_parent_actor()
101 .nlink = 0, in xchk_parent_validate()
168 if (spc.nlink != expected_nlink) in xchk_parent_validate()
/kernel/linux/linux-6.6/fs/smb/server/
H A Dmisc.c201 int nlink; in get_nlink() local
203 nlink = st->nlink; in get_nlink()
205 nlink--; in get_nlink()
207 return nlink; in get_nlink()
/kernel/linux/linux-5.10/fs/overlayfs/
H A Dinode.c217 (is_dir || lowerstat.nlink == 1))) { in ovl_getattr()
259 * correct link count. nlink=1 seems to pacify 'find' and in ovl_getattr()
263 stat->nlink = 1; in ovl_getattr()
267 * Overlay inode nlink counts the union of the upper hardlinks in ovl_getattr()
272 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr()
684 * With inodes index enabled, an overlay inode nlink counts the union of upper
686 * upper inode, the following nlink modifying operations can happen:
692 * For the first, copy up case, the union nlink does not change, whether the
693 * operation succeeds or fails, but the upper inode nlink may change.
694 * Therefore, before copy up, we store the union nlink valu
749 int nlink; ovl_get_nlink() local
979 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; ovl_get_inode() local
[all...]
/kernel/linux/linux-5.10/fs/proc/
H A Dgeneric.c142 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()
448 ent->nlink = nlink; in __proc_create()
712 parent->nlink--; in remove_proc_entry()
772 next->nlink in remove_proc_subtree()
397 __proc_create(struct proc_dir_entry **parent, const char *name, umode_t mode, nlink_t nlink) __proc_create() argument
[all...]
H A Dproc_net.c303 stat->nlink = net->proc_net->nlink; in proc_tgid_net_getattr()
349 netd->nlink = 2; in proc_net_ns_init()
H A Droot.c315 stat->nlink = proc_root.nlink + nr_processes(); in proc_root_getattr()
365 .nlink = 2,
/kernel/linux/linux-6.6/fs/proc/
H A Dgeneric.c143 nlink_t nlink = READ_ONCE(de->nlink); in proc_getattr() local
144 if (nlink > 0) { in proc_getattr()
145 set_nlink(inode, nlink); in proc_getattr()
380 dir->nlink++; in proc_register()
394 nlink_t nlink) in __proc_create()
442 ent->nlink = nlink; in __proc_create()
706 parent->nlink--; in remove_proc_entry()
766 next->nlink in remove_proc_subtree()
391 __proc_create(struct proc_dir_entry **parent, const char *name, umode_t mode, nlink_t nlink) __proc_create() argument
[all...]
H A Dproc_net.c314 stat->nlink = net->proc_net->nlink; in proc_tgid_net_getattr()
367 netd->nlink = 2; in proc_net_ns_init()
H A Droot.c319 stat->nlink = proc_root.nlink + nr_processes(); in proc_root_getattr()
369 .nlink = 2,
/kernel/linux/linux-5.10/fs/
H A Dstat.c41 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()
/kernel/linux/linux-6.6/fs/
H A Dstat.c55 stat->nlink = inode->i_nlink; in generic_fillattr()
331 tmp.st_nlink = stat->nlink; in cp_old_stat()
332 if (tmp.st_nlink != stat->nlink) in cp_old_stat()
412 tmp.st_nlink = stat->nlink; in cp_new_stat()
413 if (tmp.st_nlink != stat->nlink) in cp_new_stat()
558 tmp.st_nlink = stat->nlink; in cp_new_stat64()
633 tmp.stx_nlink = stat->nlink; in cp_statx()
725 tmp.st_nlink = stat->nlink; in cp_compat_stat()
726 if (tmp.st_nlink != stat->nlink) in cp_compat_stat()
/kernel/linux/linux-6.6/fs/overlayfs/
H A Dinode.c221 (is_dir || lowerstat.nlink == 1))) { in ovl_getattr()
268 * correct link count. nlink=1 seems to pacify 'find' and in ovl_getattr()
272 stat->nlink = 1; in ovl_getattr()
276 * Overlay inode nlink counts the union of the upper hardlinks in ovl_getattr()
281 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr()
1062 * With inodes index enabled, an overlay inode nlink counts the union of upper
1064 * upper inode, the following nlink modifying operations can happen:
1070 * For the first, copy up case, the union nlink does not change, whether the
1071 * operation succeeds or fails, but the upper inode nlink may change.
1072 * Therefore, before copy up, we store the union nlink valu
1127 int nlink; ovl_get_nlink() local
1361 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; ovl_get_inode() local
[all...]
/kernel/linux/linux-5.10/fs/ocfs2/
H A Docfs2.h562 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()
/kernel/linux/linux-6.6/fs/ocfs2/
H A Docfs2.h560 u32 nlink = le16_to_cpu(di->i_links_count); in ocfs2_read_links_count() local
563 nlink |= (hi << OCFS2_LINKS_HI_SHIFT); in ocfs2_read_links_count()
565 return nlink; in ocfs2_read_links_count()
568 static inline void ocfs2_set_links_count(struct ocfs2_dinode *di, u32 nlink) in ocfs2_set_links_count() argument
572 lo = nlink; in ocfs2_set_links_count()
573 hi = nlink >> OCFS2_LINKS_HI_SHIFT; in ocfs2_set_links_count()
/kernel/linux/linux-5.10/fs/afs/
H A Dinode.c73 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()
H A Dxdr_fs.h15 __be32 nlink; member
/kernel/linux/linux-5.10/include/linux/
H A Dstat.h25 unsigned int nlink; member
/kernel/linux/linux-6.6/include/linux/
H A Dstat.h25 unsigned int nlink; member
/kernel/linux/linux-6.6/fs/afs/
H A Dinode.c81 status->nlink, in afs_inode_init_from_status()
99 set_nlink(&vnode->netfs.inode, status->nlink); in afs_inode_init_from_status()
190 if (status->nlink != vnode->status.nlink) in afs_apply_status()
191 set_nlink(inode, status->nlink); in afs_apply_status()
778 stat->nlink > 0) in afs_getattr()
779 stat->nlink -= 1; in afs_getattr()
/kernel/linux/linux-5.10/fs/hostfs/
H A Dhostfs.h59 unsigned int nlink; member

Completed in 28 milliseconds

1234567