Lines Matching refs:nbytes
157 static size_t item_make_header(const uint8_t nkey, const client_flags_t flags, const int nbytes, in item_make_header() argument
164 return sizeof(item) + nkey + *nsuffix + nbytes; in item_make_header()
255 const rel_time_t exptime, const int nbytes) { in do_item_alloc() argument
260 if (nbytes < 2) in do_item_alloc()
263 size_t ntotal = item_make_header(nkey + 1, flags, nbytes, suffix, &nsuffix); in do_item_alloc()
332 it->nbytes = nbytes; in do_item_alloc()
373 bool item_size_ok(const size_t nkey, const client_flags_t flags, const int nbytes) { in item_size_ok() argument
376 if (nbytes < 2) in item_size_ok()
379 size_t ntotal = item_make_header(nkey + 1, flags, nbytes, in item_size_ok()
429 sizes_bytes[it->slabs_clsid] += (ITEM_ntotal(it) - it->nbytes) + sizeof(item_hdr); in do_item_link_q()
474 sizes_bytes[it->slabs_clsid] -= (ITEM_ntotal(it) - it->nbytes) + sizeof(item_hdr); in do_item_unlink_q()
492 MEMCACHED_ITEM_LINK(ITEM_key(it), it->nkey, it->nbytes); in do_item_link()
514 MEMCACHED_ITEM_UNLINK(ITEM_key(it), it->nkey, it->nbytes); in do_item_unlink()
530 MEMCACHED_ITEM_UNLINK(ITEM_key(it), it->nkey, it->nbytes); in do_item_unlink_nolock()
545 MEMCACHED_ITEM_REMOVE(ITEM_key(it), it->nkey, it->nbytes); in do_item_remove()
556 MEMCACHED_ITEM_UPDATE(ITEM_key(it), it->nkey, it->nbytes); in do_item_update()
585 MEMCACHED_ITEM_REPLACE(ITEM_key(it), it->nkey, it->nbytes, in do_item_replace()
586 ITEM_key(new_it), new_it->nkey, new_it->nbytes); in do_item_replace()
670 if ((it->nbytes == 0 && it->nkey == 0) || (it->it_flags & ITEM_KEY_BINARY)) { in item_cachedump()
678 key_temp, it->nbytes - 2, in item_cachedump()
717 } else if (tails[i]->nbytes == 0 && tails[i]->nkey == 0 && tails[i]->it_flags == 1) { in fill_item_stats_automove()
1057 nkey, (it) ? it->nbytes : 0, (it) ? ITEM_clsid(it) : 0, t->cur_sfd); in do_item_get()
1128 if (search->nbytes == 0 && search->nkey == 0 && search->it_flags == 1) { in lru_pull_tail()
1754 assert(it->nbytes == 0); in do_item_linktail_q()
1798 assert(it->nbytes == 0); in do_item_crawl_q()