nfs_coalesce_size(9)
π nfs_coalesce_size(9) π
ok so this is a kernel API manual page, bestie β it lives in the Kernel API Manual section and honestly it's giving "small function, big responsibilities" energy. Let's get into it β¨
πΈ NAME πΈ
nfs_coalesce_size β the vibe check that tells you whether two requests are compatible enough to smoosh together π«Ά
β¨ SYNOPSIS β¨
unsigned int nfs_coalesce_size (struct nfs_page *prev , struct nfs_page
*req , struct nfs_pageio_descriptor *pgio );
π ARGUMENTS π
prevβ pointer tonfs_page(the one that came first, the og request π )reqβ pointer tonfs_page(the new one trying to get in on the action)pgioβ pointer tonfs_pagio_descriptor(yes that's how it's spelled here, don't come for me, I'm just the messenger π)
π¦ DESCRIPTION π¦
okay so real talk: the nfs_page structures prev and req get compared. what are we comparing, you ask? we're making sure that:
- the page data area they describe is contiguous β like, actually next to each other, no gaps, no awkwardness π
- their RPC credentials are the same
- their NFSv4 open state is the same
- their lockowners are the same
if all of that lines up? slay. they're compatible.
Returns the size of the request that can be coalesced. periodt. π
π SEE ALSO π
kernel file ./fs/nfs/pagelist.c β that's where the magic lives, iykyk π§
and the whole friend group, fr fr:
nfs_iocounter_wait(9)nfs_async_iocounter_wait(9)nfs_page_group_sync_on_bit_locked(9)nfs_page_create_from_page(9)nfs_page_create_from_folio(9)nfs_unlock_request(9)nfs_unlock_and_release_request(9)nfs_free_request(9)nfs_pgio_data_destroy(9)nfs_pgio_rpcsetup(9)nfs_pgio_prepare(9)nfs_pgio_error(9)nfs_pgio_release(9)nfs_pageio_init(9)nfs_pgio_result(9)nfs_pageio_do_add_request(9)__nfs_pageio_add_request(9)nfs_pageio_complete(9)nfs_pageio_cond_complete(9)
ngl, "coalesce" is such a main character word. it's giving "come together, become one, ate" π₯
ok that's the page!! sourced straight from ./fs/nfs, dated October 2026, and it's the nfs_coalesce_size(9) manual page signing off β stay contiguous, stay credential-consistent, and don't let anyone tell you your lockowner is different ππβ¨
π¦ 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