Searched refs:block (Results 1 – 3 of 3) sorted by relevance
316 static int pcpu_next_hint(struct pcpu_block_md *block, int alloc_bits) in pcpu_next_hint() argument325 if (block->scan_hint && in pcpu_next_hint()326 block->contig_hint_start > block->scan_hint_start && in pcpu_next_hint()327 alloc_bits > block->scan_hint) in pcpu_next_hint()328 return block->scan_hint_start + block->scan_hint; in pcpu_next_hint()330 return block->first_free; in pcpu_next_hint()349 struct pcpu_block_md *block; in pcpu_next_md_free_region() local352 for (block = chunk->md_blocks + i; i < pcpu_chunk_nr_blocks(chunk); in pcpu_next_md_free_region()353 block++, i++) { in pcpu_next_md_free_region()356 *bits += block->left_free; in pcpu_next_md_free_region()[all …]
382 static void slob_free(void *block, int size) in slob_free() argument385 slob_t *prev, *next, *b = (slob_t *)block; in slob_free()390 if (unlikely(ZERO_OR_NULL_PTR(block))) in slob_free()394 sp = virt_to_page(block); in slob_free()540 void kfree(const void *block) in kfree() argument544 trace_kfree(_RET_IP_, block); in kfree()546 if (unlikely(ZERO_OR_NULL_PTR(block))) in kfree()548 kmemleak_free(block); in kfree()550 sp = virt_to_page(block); in kfree()555 unsigned int *m = (unsigned int *)(block - align); in kfree()[all …]
146 sector_t block; in generic_swapfile_activate() local148 block = probe_block + block_in_page; in generic_swapfile_activate()149 ret = bmap(inode, &block); in generic_swapfile_activate()150 if (ret || !block) in generic_swapfile_activate()153 if (block != first_block + block_in_page) { in generic_swapfile_activate()