Home
last modified time | relevance | path

Searched refs:i_nlink (Results 1 – 25 of 123) sorted by relevance

12345

/kernel/linux/linux-5.10/fs/sysv/
Dinode.c201 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()
Dialloc.c83 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()
/kernel/linux/linux-5.10/fs/jfs/
Dinode.c85 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()
Dnamei.c512 ASSERT(ip->i_nlink); in jfs_unlink()
523 if (ip->i_nlink == 0) { in jfs_unlink()
574 if (ip->i_nlink == 0) in jfs_unlink()
1175 if (new_ip->i_nlink) { in jfs_rename()
1190 } else if (new_ip->i_nlink == 0) { in jfs_rename()
1317 if (new_ip && (new_ip->i_nlink == 0)) in jfs_rename()
/kernel/linux/linux-5.10/fs/reiserfs/
Dnamei.c22 #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()
960 if (inode->i_nlink != 2 && inode->i_nlink != 1) in reiserfs_rmdir()
963 inode->i_nlink); in reiserfs_rmdir()
1048 if (!inode->i_nlink) { in reiserfs_unlink()
1051 inode->i_ino, inode->i_nlink); in reiserfs_unlink()
1061 savelink = inode->i_nlink; in reiserfs_unlink()
1216 if (inode->i_nlink >= REISERFS_LINK_MAX) { in reiserfs_link()
1590 savelink = new_dentry_inode->i_nlink; in reiserfs_rename()
/kernel/linux/linux-5.10/fs/erofs/
Derofs_fs.h88 __le16 i_nlink; member
135 __le32 i_nlink; member
/kernel/linux/linux-5.10/fs/overlayfs/
Dinode.c272 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr()
725 (int) (inode->i_nlink - realinode->i_nlink)); in ovl_set_nlink_common()
753 if (!lowerdentry || !upperdentry || d_inode(lowerdentry)->i_nlink == 1) in ovl_get_nlink()
770 nlink = d_inode(buf[0] == 'L' ? lowerdentry : upperdentry)->i_nlink; in ovl_get_nlink()
932 !d_is_dir(lower) && d_inode(lower)->i_nlink > 1) in ovl_hash_bylower()
979 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; in ovl_get_inode()
Dutil.c697 if (!d_is_dir(lower) && d_inode(lower)->i_nlink > 1) in ovl_need_index()
720 if (!S_ISDIR(inode->i_mode) && inode->i_nlink != 1) { in ovl_cleanup_index()
722 upperdentry, inode->i_ino, inode->i_nlink); in ovl_cleanup_index()
732 set_nlink(d_inode(dentry), inode->i_nlink - 1); in ovl_cleanup_index()
826 if (ovl_test_flag(OVL_INDEX, inode) && inode->i_nlink == 0) { in ovl_nlink_end()
/kernel/linux/linux-5.10/fs/gfs2/
Dinode.c359 if (!dip->i_inode.i_nlink) in create_ok()
364 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok()
951 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()
1460 if (ip->i_inode.i_nlink == 0) in gfs2_rename()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Dnamei.c271 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod()
557 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()
1218 u32 old_dir_nlink = old_dir->i_nlink; in ocfs2_rename()
1299 if (!new_dir->i_nlink) { in ocfs2_rename()
[all …]
Dinode.c900 inode->i_nlink); in ocfs2_query_inode_wipe()
912 if (inode->i_nlink) in ocfs2_query_inode_wipe()
1120 inode->i_nlink); in ocfs2_clear_inode()
1216 if (!inode->i_nlink || in ocfs2_evict_inode()
1233 inode->i_nlink, oi->ip_flags); in ocfs2_drop_inode()
1313 ocfs2_set_links_count(fe, inode->i_nlink); in ocfs2_mark_inode_dirty()
/kernel/linux/linux-5.10/fs/affs/
Dinode.c180 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()
/kernel/linux/linux-5.10/fs/ecryptfs/
Ddentry.c46 if (!inode->i_nlink) in ecryptfs_d_revalidate()
/kernel/linux/linux-5.10/fs/bfs/
Dinode.c80 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()
/kernel/linux/linux-5.10/fs/xfs/scrub/
Dparent.c156 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate()
231 expected_nlink = VFS_I(sc->ip)->i_nlink == 0 ? 0 : 1; in xchk_parent_validate()
/kernel/linux/linux-5.10/fs/ceph/
Dexport.c169 if (inode->i_nlink == 0) { in ceph_lookup_inode()
190 if ((inode->i_nlink == 0) && (atomic_read(&inode->i_count) == 1)) { in __fh_to_dentry()
254 if (inode->i_nlink == 0) in __snapfh_to_dentry()
372 if (dir->i_nlink == 0) in ceph_get_parent()
/kernel/linux/linux-5.10/fs/
Dstack.c74 set_nlink(dest, src->i_nlink); in fsstack_copy_attr_all()
/kernel/linux/linux-5.10/fs/hpfs/
Dinode.c193 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()
/kernel/linux/linux-5.10/include/uapi/linux/
Dbfs_fs.h34 __le32 i_nlink; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dbfs_fs.h39 __le32 i_nlink; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dbfs_fs.h26 __le32 i_nlink; member
/kernel/linux/linux-5.10/fs/ubifs/
Djournal.c449 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()
1719 ubifs_assert(c, inode->i_nlink == 0); in ubifs_jnl_delete_xattr()
1841 ubifs_assert(c, inode->i_nlink > 0); in ubifs_jnl_change_xattr()
/kernel/linux/linux-5.10/fs/minix/
Dinode.c31 if (!inode->i_nlink) { in minix_evict_inode()
37 if (!inode->i_nlink) in minix_evict_inode()
592 raw_inode->i_nlinks = inode->i_nlink; in V1_minix_update_inode()
619 raw_inode->i_nlinks = inode->i_nlink; in V2_minix_update_inode()
/kernel/linux/linux-5.10/fs/ufs/
Dinode.c571 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()
/kernel/linux/linux-5.10/fs/ext4/
Dialloc.c261 if (inode->i_nlink) { in ext4_free_inode()
263 __func__, __LINE__, inode->i_ino, inode->i_nlink); in ext4_free_inode()
946 if (!dir || !dir->i_nlink) in __ext4_new_inode()
1403 if ((inode->i_nlink && !ext4_can_truncate(inode)) || in ext4_orphan_get()
1424 printk(KERN_ERR "i_nlink=%u\n", inode->i_nlink); in ext4_orphan_get()
1426 if (inode->i_nlink == 0) in ext4_orphan_get()

12345