pack_fragment(9)
π
pack_fragment(9) β a Kernel API Manual moment π
okay so bestie, this is the Kernel API Manual page for pack_fragment(9), and lowkey it's iconic. not me being obsessed with a packing function, but here we are. this one packs a data_vio's fragment into the compressed block where it's already known to fit. vibe check: it fits, periodt. β¨
πΈ NAME πΈ
pack_fragment β pack a data_vio's fragment into the compressed block in which it is already known to fit. that's the whole name, fr fr. π
β¨ SYNOPSIS β¨
block_size_t pack_fragment (struct compression_state *compression ,
struct data_vio *data_vio , block_size_t offset , slot_number_t slot ,
struct compressed_block *block );
π ARGUMENTS π
compressionβ the agent'scompression_stateto pack in to. π«Άdata_vioβ thedata_vioto pack. literally the main character here. βoffsetβ the offset into the compressed block at which to pack the fragment. πslotβ the slot number in the compressed block. π’blockβ the compressed block which will be written out when batch is fully packed. π
π RETURN π
the new amount of space used. that's it, that's the return. no cap. π«Ά
π¦ SEE ALSO π¦
go read these next, iykyk:
- 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)remove_from_bin(9)initialize_compressed_block(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)
cute sign-off time, bestie: this page came from the ./drivers/md/dm-vdo source/version and is dated October 2026. π«Άβ¨π
π¦ 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