get_mergeable_locked(9)
πΈ get_mergeable_locked(9) πΈ
okay bestie, welcome to the Kernel API Manual β yes, that's the whole manual name, we're fancy here π
. This page is all about get_mergeable_locked, which is genuinely such a vibe: it's the function that goes "hmm, has somebody already queued up a bio that my bio could smoosh into?" π«Ά
β¨ NAME β¨
get_mergeable_locked β literally goes looking for an already queued bio that the current bio can be merged with. that's it. that's the whole job. icon behaviour honestly π
π¦ SYNOPSIS π¦
struct vio * get_mergeable_locked (struct int_map *map , struct vio *vio
, bool back_merge );
like yes she takes three args and returns a struct vio *, we been knew π (the spacing in there is exactly how the original has it, do not come for me π)
π ARGUMENTS π
mapβ the bio map to use for merging. your lookup zone, your little matchmaking directory ποΈvioβ the vio we want to merge. this is the main character of the operation, the one we're trying to pair up π«back_mergeβ set totruefor a back merge,falsefor a front merge. yes it's a boolean, yes you have to pick a side π―
π DESCRIPTION π
so there are two types of merging possible: forward and backward π. the way you tell them apart is a flag β and that flag uses kernel elevator terminology, which is such a specific little detail but okay go off, storage stack πβ¨
like that's genuinely the whole scope of this function's documentation and tbh? respect. no fluff, no filler, just merging facts π₯
β RETURN β
returns the vio to merge to π«Ά β and if no merging is possible, you get NULL. that's your "no match found, bestie, better luck next bio" moment π
ngl, always check for the NULL. it's giving "left on read" energy and you do not want to dereference that π
πΈ SEE ALSO πΈ
- kernel file
./drivers/md/dm-vdo/io-submitter.cβ the source, the origin, the mothership π§ count_all_bios(9)assert_in_bio_zone(9)send_bio_to_device(9)vdo_submit_vio(9)get_bio_list(9)submit_data_vio(9)try_bio_map_merge(9)vdo_submit_data_vio(9)__submit_metadata_vio(9)vdo_submit_metadata_vio_wait(9)vdo_make_io_submitter(9)vdo_cleanup_io_submitter(9)vdo_free_io_submitter(9)
all of these are your little friends, read them too iykyk π¦
π that's the whole page! this one lives in./drivers/md/dm-vdo, dated October 2026, and its man page name isget_mergeable_locked(9)β go forth and merge responsibly, bestie, you've got this πβ¨πΈ
π¦ 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