remove_from_bin(9)
π remove_from_bin(9)
okay so bestie, welcome to the Kernel API Manual β this one's remove_from_bin(9) and it's literally the bouncer at the club door for your packer bins π
β¨ NAME β¨
remove_from_bin β grab the next data_vio from a bin whose compression has not been canceled. that's it, that's the whole vibe check π¦
πΈ SYNOPSIS πΈ
struct data_vio * remove_from_bin (struct packer *packer , struct packer_bin *bin );
look at her go π she returns a struct data_vio *, no cap
π ARGUMENTS π
packerβ the packer itself. the main character of this whole situation πbinβ the bin you're pulling adata_vioout of. yes, that bin π
π DESCRIPTION π
so here's the tea, bestie: any canceled data_vios are getting moved to the canceled bin. they don't get to hang out here anymore, they're being relocated. the way that this function just handles it for you π«Ά
β RETURN β
you get back an uncanceled data_vio from the bin. or β and this is the important part β NULL if there are none. empty bin, empty hands, no drama π
π SEE ALSO π
okay this list is LONG, so buckle up bestie, we're going on a journey π§
Kernel file ./drivers/md/dm-vdo/packer.c
vdo_get_compressed_block_fragment(9)assert_on_packer_thread(9)insert_in_sorted_list(9)make_bin(9)vdo_make_packer(9)vdo_free_packer(9)get_packer_from_data_vio(9)vdo_get_packer_statistics(9)abort_packing(9)release_compressed_write_waiter(9)finish_compressed_write(9)add_to_bin(9)initialize_compressed_block(9)pack_fragment(9)compressed_write_end_io(9)write_bin(9)add_data_vio_to_packer_bin(9)select_bin(9)vdo_attempt_packing(9)check_for_drain_complete(9)write_all_non_empty_bins(9)vdo_flush_packer(9)vdo_remove_lock_holder_from_packer(9)vdo_increment_packer_flush_generation(9)vdo_drain_packer(9)vdo_resume_packer(9)vdo_dump_packer(9)
like I said. a whole friend group π β¨
ngl reading this whole page is giving "I have a final in an hour" energy, but you ate that, fr fr π
signed, sealed, delivered by the fine folks at ./drivers/md/dm-vdo π β October 2026 edition, mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms