Lines Matching refs:size

966 	/* pagein of a big page is an event. So, ignore page size */
1414 long size;
1430 size = *lru_size;
1431 if (WARN_ONCE(size < 0,
1433 __func__, lruvec, lru, nr_pages, size)) {
1612 u64 size;
1614 size = memcg_page_state_output(memcg, memory_stats[i].idx);
1615 seq_buf_printf(s, "%s %llu\n", memory_stats[i].name, size);
1618 size += memcg_page_state_output(memcg,
1620 seq_buf_printf(s, "slab %llu\n", size);
2606 * The allocating task should reclaim at least the batch size, but for
3390 int obj_cgroup_charge(struct obj_cgroup *objcg, gfp_t gfp, size_t size)
3395 if (consume_obj_stock(objcg, size))
3417 * size limit. The maximum reachable value of the pre-charged
3421 nr_pages = size >> PAGE_SHIFT;
3422 nr_bytes = size & (PAGE_SIZE - 1);
3434 void obj_cgroup_uncharge(struct obj_cgroup *objcg, size_t size)
3436 refill_obj_stock(objcg, size, true);
4272 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++)
4334 int i, size, ret;
4355 size = thresholds->primary ? thresholds->primary->size + 1 : 1;
4358 new = kmalloc(struct_size(new, entries, size), GFP_KERNEL);
4363 new->size = size;
4368 flex_array_size(new, entries, size - 1));
4371 new->entries[size - 1].eventfd = eventfd;
4372 new->entries[size - 1].threshold = threshold;
4375 sort(new->entries, size, sizeof(*new->entries),
4380 for (i = 0; i < size; i++) {
4425 int i, j, size, entries;
4445 size = entries = 0;
4446 for (i = 0; i < thresholds->primary->size; i++) {
4448 size++;
4460 if (!size) {
4466 new->size = size;
4470 for (i = 0, j = 0; i < thresholds->primary->size; i++) {
6718 u64 size;
6722 size = lruvec_page_state_output(lruvec,
6724 seq_printf(m, " N%d=%llu", nid, size);
7846 * either. But with zswap, the size of the allocation is only known
7886 * @size: size of compressed object
7891 void obj_cgroup_charge_zswap(struct obj_cgroup *objcg, size_t size)
7901 if (obj_cgroup_charge(objcg, GFP_KERNEL, size))
7906 mod_memcg_state(memcg, MEMCG_ZSWAP_B, size);
7914 * @size: size of compressed object
7918 void obj_cgroup_uncharge_zswap(struct obj_cgroup *objcg, size_t size)
7925 obj_cgroup_uncharge(objcg, size);
7929 mod_memcg_state(memcg, MEMCG_ZSWAP_B, -size);