Lines Matching refs:i8count
49 count += hdr->i8count ? XFS_INO64_SIZE : XFS_INO32_SIZE; /* ino # */ in xfs_dir2_sf_entsize()
82 if (!hdr->i8count) in xfs_dir2_sf_get_ino()
101 if (hdr->i8count) in xfs_dir2_sf_put_ino()
111 if (!hdr->i8count) in xfs_dir2_sf_get_parent_ino()
123 if (hdr->i8count) in xfs_dir2_sf_put_parent_ino()
178 int i8count; /* count of big-inode entries */ in xfs_dir2_block_sfsize() local
197 count = i8count = namelen = 0; in xfs_dir2_block_sfsize()
223 i8count += be64_to_cpu(dep->inumber) > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_block_sfsize()
234 size = xfs_dir2_sf_hdr_size(i8count) + /* header */ in xfs_dir2_block_sfsize()
237 (i8count ? /* inumber */ in xfs_dir2_block_sfsize()
247 sfhp->i8count = i8count; in xfs_dir2_block_sfsize()
280 memcpy(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count)); in xfs_dir2_block_to_sf()
386 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_addname()
396 if (args->inumber > XFS_DIR2_MAX_SHORT_INUM && sfp->i8count == 0) { in xfs_dir2_sf_addname()
494 sfp->i8count++; in xfs_dir2_sf_addname_easy()
580 sfp->i8count++; in xfs_dir2_sf_addname_hard()
677 int i8count; /* number of big inode#s */ in xfs_dir2_sf_check() local
686 i8count = ino > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_sf_check()
693 i8count += ino > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_sf_check()
699 ASSERT(i8count == sfp->i8count); in xfs_dir2_sf_check()
720 int i8count; in xfs_dir2_sf_verify() local
735 size < xfs_dir2_sf_hdr_size(sfp->i8count)) in xfs_dir2_sf_verify()
742 i8count = ino > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_sf_verify()
778 i8count += ino > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_sf_verify()
793 if (i8count != sfp->i8count) in xfs_dir2_sf_verify()
815 int i8count; /* parent inode is an 8-byte number */ in xfs_dir2_sf_create() local
837 i8count = pino > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_sf_create()
838 size = xfs_dir2_sf_hdr_size(i8count); in xfs_dir2_sf_create()
847 sfp->i8count = i8count; in xfs_dir2_sf_create()
885 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_lookup()
963 ASSERT(oldsize >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_removename()
1008 if (sfp->i8count == 1) in xfs_dir2_sf_removename()
1011 sfp->i8count--; in xfs_dir2_sf_removename()
1036 sfp->i8count == 0 && newsize > XFS_IFORK_DSIZE(dp); in xfs_dir2_sf_replace_needblock()
1061 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_replace()
1066 if (args->inumber > XFS_DIR2_MAX_SHORT_INUM && sfp->i8count == 0) { in xfs_dir2_sf_replace()
1131 if (sfp->i8count == 1) in xfs_dir2_sf_replace()
1134 sfp->i8count--; in xfs_dir2_sf_replace()
1145 ASSERT(sfp->i8count != 0); in xfs_dir2_sf_replace()
1147 sfp->i8count++; in xfs_dir2_sf_replace()
1183 ASSERT(oldsfp->i8count == 1); in xfs_dir2_sf_toino4()
1200 sfp->i8count = 0; in xfs_dir2_sf_toino4()
1256 ASSERT(oldsfp->i8count == 0); in xfs_dir2_sf_toino8()
1273 sfp->i8count = 1; in xfs_dir2_sf_toino8()