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_disk_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 */
835 i8count = pino > XFS_DIR2_MAX_SHORT_INUM;
836 size = xfs_dir2_sf_hdr_size(i8count);
845 sfp->i8count = i8count;
847 * Now can put in the inode number, since i8count is set.
882 ASSERT(dp->i_disk_size >= xfs_dir2_sf_hdr_size(sfp->i8count));
959 ASSERT(oldsize >= xfs_dir2_sf_hdr_size(sfp->i8count));
1004 if (sfp->i8count == 1)
1007 sfp->i8count--;
1032 sfp->i8count == 0 && newsize > xfs_inode_data_fork_size(dp);
1046 int i8elevated; /* sf_toino8 set i8count=1 */
1057 ASSERT(dp->i_disk_size >= xfs_dir2_sf_hdr_size(sfp->i8count));
1062 if (args->inumber > XFS_DIR2_MAX_SHORT_INUM && sfp->i8count == 0) {
1127 if (sfp->i8count == 1)
1130 sfp->i8count--;
1138 * add to the i8count unless we just converted to 8-byte
1139 * inodes (which does an implied i8count = 1)
1141 ASSERT(sfp->i8count != 0);
1143 sfp->i8count++;
1179 ASSERT(oldsfp->i8count == 1);
1196 sfp->i8count = 0;
1225 * i8count set to 1, but no corresponding 8-byte entry.
1252 ASSERT(oldsfp->i8count == 0);
1269 sfp->i8count = 1;