Lines Matching refs:clean_bits
74 dm_bitset_t clean_bits;
242 * 0: Valid header, disk bit -> lc->clean_bits
265 memcpy(lc->clean_bits, lc->disk_buffer + 1024, bitset_size);
287 /* Write disk bits from clean_bits */
290 memcpy(lc->disk_buffer + 1024, lc->clean_bits, bitset_size);
471 lc->clean_bits = dm_bitset_create(NULL, region_count);
472 if (!lc->clean_bits) {
490 pages = ((int)lc->clean_bits[0])/page_size;
491 pages += ((int)lc->clean_bits[0])%page_size ? 1 : 0;
522 if (lc->clean_bits)
523 free(lc->clean_bits);
645 free(lc->clean_bits);
756 LOG_ERROR("Error:: partial bit loading (just clean_bits)");
800 log_set_bit(lc, lc->clean_bits, i);
803 log_clear_bit(lc, lc->clean_bits, i);
807 log_clear_bit(lc, lc->clean_bits, i);
810 dm_bit_copy(lc->sync_bits, lc->clean_bits);
826 log_clear_bit(lc, lc->clean_bits, i);
945 *rtn = log_test_bit(lc->clean_bits, region);
1044 log_clear_bit(lc, lc->clean_bits, region);
1122 log_set_bit(lc, lc->clean_bits, region);
1711 bitset_size = ((int)lc->clean_bits[0]/DM_BITS_PER_INT) + 1;
1729 } else if (!strncmp(which, "clean_bits", 9)) {
1730 memcpy(*buf, lc->clean_bits + 1, bitset_size);
1731 LOG_DBG("[%s] storing clean_bits:", SHORT_UUID(lc->uuid));
1765 bitset_size = ((int)lc->clean_bits[0]/DM_BITS_PER_INT) + 1;
1783 } else if (!strncmp(which, "clean_bits", 9)) {
1785 memcpy(lc->clean_bits + 1, buf, bitset_size);
1786 LOG_DBG("[%s] loading clean_bits:", SHORT_UUID(lc->uuid));
1787 print_bits((char *)lc->clean_bits, bitset_size, 0);
1831 LOG_ERROR("clean_bits:");
1832 print_bits((char *)lc->clean_bits, (int)lc->sync_bits[0], 1);
1844 LOG_ERROR("clean_bits:");
1845 print_bits((char *)lc->clean_bits, (int)lc->sync_bits[0], 1);