Lines Matching refs:x
159 int x; in _storage_get_item_cb() local
166 for (x = 1; x < io->iovcnt; x++) { in _storage_get_item_cb()
167 crc2 = crc32c(crc2, (char *)io->iov[x].iov_base, io->iov[x].iov_len); in _storage_get_item_cb()
625 for (int x = 0; x < MAX_NUMBER_OF_SLAB_CLASSES; x++) { in storage_write_thread() local
631 if (min_class > x || (backoff[x] && (counter % backoff[x] != 0))) { in storage_write_thread()
637 chunks_free = slabs_available_chunks(x, &mem_limit_reached, in storage_write_thread()
656 if (storage_write(storage, x, item_age)) { in storage_write_thread()
674 backoff[x]++; in storage_write_thread()
676 backoff[x] = 1; in storage_write_thread()
685 for (int x = 0; x < MAX_NUMBER_OF_SLAB_CLASSES; x++) { in storage_write_thread() local
686 backoff[x] = 1; in storage_write_thread()
779 for (int x = 0; x < PAGE_BUCKET_COUNT; x++) { in storage_compact_check() local
780 memset(&buckets[x], 0, sizeof(_storage_buk)); in storage_compact_check()
781 buckets[x].low_version = ULLONG_MAX; in storage_compact_check()
782 buckets[x].lowest_version = ULLONG_MAX; in storage_compact_check()
793 for (int x = 0; x < st.page_count; x++) { in storage_compact_check() local
794 buk = &buckets[st.page_data[x].free_bucket]; in storage_compact_check()
796 if (st.page_data[x].version == 0) { in storage_compact_check()
805 if (st.page_data[x].active) { in storage_compact_check()
809 if (st.page_data[x].version < buk->lowest_version) { in storage_compact_check()
810 buk->lowest_page = x; in storage_compact_check()
811 buk->lowest_version = st.page_data[x].version; in storage_compact_check()
814 unsigned int frag = st.page_size - st.page_data[x].bytes_used; in storage_compact_check()
815 if (st.page_data[x].bytes_used < frag_limit && frag > buk->bytes_fragmented) { in storage_compact_check()
816 buk->low_page = x; in storage_compact_check()
817 buk->low_version = st.page_data[x].version; in storage_compact_check()
842 for (int x = 0; x < PAGE_BUCKET_COUNT; x++) { in storage_compact_check() local
843 buk = &buckets[x]; in storage_compact_check()
848 if (pages_total == 0 || x == PAGE_BUCKET_LOWTTL) in storage_compact_check()
860 if (x == PAGE_BUCKET_COLDCOMPACT || x == PAGE_BUCKET_OLD) { in storage_compact_check()