Lines Matching defs:hand
659 static int hand = 0; /* hand rotates through all frags in the fs */
660 int cgsize; /* size of the cg hand currently points into */
661 uint32_t cgn; /* number of cg hand currently points into */
662 int fwc; /* frag-within-cg number of frag hand points
667 unsigned char *bits; /* cg_blksfree()[] for cg hand points into */
669 cgn = dtog(newsb, hand);
670 fwc = dtogd(newsb, hand);
671 secondpass = (hand == 0);
679 return (hand + 1 - run);
683 hand++;
689 hand = 0;
708 * See find_freespace(), above, for remarks about hand wrapping around.
713 static int hand = 0; /* hand rotates through all frags in fs */
714 uint32_t cgn; /* cg number of cg hand points into */
715 int fwc; /* frag-within-cg number of frag hand points
717 int cgsize; /* size of cg hand points into */
719 unsigned char *bits; /* cg_blksfree()[] for cg hand points into */
721 cgn = dtog(newsb, hand);
722 fwc = dtogd(newsb, hand);
723 secondpass = (hand == 0);
728 return (hand);
730 hand += newsb->fs_frag;
735 hand = 0;
751 * See find_freespace(), above, for remarks about hand wrapping around.
756 static int hand = 0; /* hand rotates through all inodes in fs */
757 uint32_t cgn; /* cg number of cg hand points into */
758 uint32_t iwc; /* inode-within-cg number of inode hand points
761 unsigned char *bits; /* cg_inosused()[] for cg hand points into */
763 cgn = hand / newsb->fs_ipg;
764 iwc = hand % newsb->fs_ipg;
765 secondpass = (hand == 0);
769 return (hand);
770 hand++;
776 hand = 0;