Lines Matching refs:zbit
560 size_t zbit, zlen, from, to, fr; in ntfs_look_free_mft() local
578 zbit = wnd_zone_bit(wnd); in ntfs_look_free_mft()
579 *rno = zbit; in ntfs_look_free_mft()
580 wnd_zone_set(wnd, zbit + 1, zlen - 1); in ntfs_look_free_mft()
586 if (!wnd_find(wnd, 1, MFT_REC_FREE, 0, &zbit)) { in ntfs_look_free_mft()
592 zbit = mft_total; in ntfs_look_free_mft()
656 zbit = find_next_zero_bit(&sbi->mft.reserved_bitmap, in ntfs_look_free_mft()
658 if (zbit >= MFT_REC_FREE) { in ntfs_look_free_mft()
664 sbi->mft.next_reserved = zbit; in ntfs_look_free_mft()
667 zlen = zbit == MFT_REC_FREE ? (MFT_REC_USER - MFT_REC_FREE) : 4; in ntfs_look_free_mft()
668 if (zbit + zlen > wnd->nbits) in ntfs_look_free_mft()
669 zlen = wnd->nbits - zbit; in ntfs_look_free_mft()
671 while (zlen > 1 && !wnd_is_free(wnd, zbit, zlen)) in ntfs_look_free_mft()
676 if (from < zbit) in ntfs_look_free_mft()
677 from = zbit; in ntfs_look_free_mft()
678 to = zbit + zlen; in ntfs_look_free_mft()
686 *rno = zbit; in ntfs_look_free_mft()
687 zbit += 1; in ntfs_look_free_mft()
691 wnd_zone_set(wnd, zbit, zlen); in ntfs_look_free_mft()