Lines Matching defs:i8count
49 count += hdr->i8count ? XFS_INO64_SIZE : XFS_INO32_SIZE; /* ino # */
82 if (!hdr->i8count)
101 if (hdr->i8count)
111 if (!hdr->i8count)
123 if (hdr->i8count)
178 int i8count; /* count of big-inode entries */
197 count = i8count = namelen = 0;
223 i8count += be64_to_cpu(dep->inumber) > XFS_DIR2_MAX_SHORT_INUM;
234 size = xfs_dir2_sf_hdr_size(i8count) + /* header */
237 (i8count ? /* inumber */
247 sfhp->i8count = i8count;
280 memcpy(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count));
386 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count));
396 if (args->inumber > XFS_DIR2_MAX_SHORT_INUM && sfp->i8count == 0) {
494 sfp->i8count++;
502 * in which case we need to leave the i8count at 1.
580 sfp->i8count++;
677 int i8count; /* number of big inode#s */
686 i8count = ino > XFS_DIR2_MAX_SHORT_INUM;
693 i8count += ino > XFS_DIR2_MAX_SHORT_INUM;
699 ASSERT(i8count == sfp->i8count);
720 int i8count;
735 size < xfs_dir2_sf_hdr_size(sfp->i8count))
742 i8count = ino > XFS_DIR2_MAX_SHORT_INUM;
778 i8count += ino > XFS_DIR2_MAX_SHORT_INUM;
793 if (i8count != sfp->i8count)
815 int i8count; /* parent inode is an 8-byte number */
837 i8count = pino > XFS_DIR2_MAX_SHORT_INUM;
838 size = xfs_dir2_sf_hdr_size(i8count);
847 sfp->i8count = i8count;
849 * Now can put in the inode number, since i8count is set.
885 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count));
963 ASSERT(oldsize >= xfs_dir2_sf_hdr_size(sfp->i8count));
1008 if (sfp->i8count == 1)
1011 sfp->i8count--;
1036 sfp->i8count == 0 && newsize > XFS_IFORK_DSIZE(dp);
1050 int i8elevated; /* sf_toino8 set i8count=1 */
1061 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count));
1066 if (args->inumber > XFS_DIR2_MAX_SHORT_INUM && sfp->i8count == 0) {
1131 if (sfp->i8count == 1)
1134 sfp->i8count--;
1142 * add to the i8count unless we just converted to 8-byte
1143 * inodes (which does an implied i8count = 1)
1145 ASSERT(sfp->i8count != 0);
1147 sfp->i8count++;
1183 ASSERT(oldsfp->i8count == 1);
1200 sfp->i8count = 0;
1229 * i8count set to 1, but no corresponding 8-byte entry.
1256 ASSERT(oldsfp->i8count == 0);
1273 sfp->i8count = 1;