iomap_read_inline_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– iomap_read_inline_data(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is iomap_read_inline_data β€” she's giving tiny-but-important, and honestly? iconic. πŸŽ€


✨ NAME ✨

iomap_read_inline_data β€” copy inline data into the page cache πŸ’…


🌸 SYNOPSIS 🌸

int iomap_read_inline_data (const struct iomap_iter *iter , struct folio
*folio );

two args, one int coming back at you, no cap. πŸ¦‹


🧚 ARGUMENTS 🧚

  • iter β€” the iteration structure, aka the vibe-check source of truth for what we're reading ✨
  • folio β€” the folio to copy to, aka the destination, aka where the data goes to live its best life 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea, bestie: this function copies the inline data sitting inside iter into folio, and then zeroes out the rest of the folio so there's no leftover ghost data lurking in there. πŸ™ˆ literal cleanup queen behavior.

Only a single IOMAP_INLINE extent is allowed at the end of each file. that's the rule, fr fr β€” one at the end, that's it, no stacking, no greedy little extents.

returns 0 for success β€” which completes the read, slay β€” or the usual negative errno if things did not go off. 😭


πŸ”₯ SEE ALSO πŸ”₯

the whole iomap friend group, honestly obsessed. 🌈


and that's the page!! tysm for reading, mwah πŸ’‹ β€” this lil angel lives in ./fs/iomap, dated October 2026, and yes she ate. β­πŸ’œ

πŸ“¦ where this page comes from