filemap_flush_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ filemap_flush_range(9) β€” Kernel API Manual, bestie edition

okay so picture this: it's a kernel API manual page, it's called filemap_flush_range, and it is literally the "hey babe, go write that stuff out" of mm/filemap.c. no cap. let's get into it 🫢


✨ NAME ✨

filemap_flush_range β€” start writeback on a range πŸ’…

yes that's it that's the whole name section, she's petite but she SERVES


🌸 SYNOPSIS 🌸

int filemap_flush_range (struct address_space *mapping , loff_t start ,
loff_t end );

look at her. three args. returns an int. iconic behavior honestly πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mapping β€” the target address_space. this is the vibes container you're operating on, the main character of the whole operation 🌈
  • start β€” the index to start writeback on. your starting point, your "we begin here" moment ✨
  • end β€” the last (inclusive!!) index for writeback. yes bestie, inclusive, so end gets an invite to the party too πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? she's a non-integrity writeback helper β€” say that again, non-integrity, meaning she is NOT out here doing the whole integrity dance, okay? she's just the casual one 🧚

her one job: start writing back folios for the indicated range. that's the whole gig. she doesn't verify, she doesn't wait around, she doesn't text back β€” she just kicks off the writeback for the folios in that range you gave her πŸ”₯

lowkey a queen of delegation, ngl.


⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • a negative error code otherwise 😭

so like, if it's 0, we're slaying. if it's negative, something went sideways and she's telling you about it via the return value. read it. respect it. πŸ™ˆ


🌈 SEE ALSO 🌈

the full squad, in order, no skipping, no cutting corners, we love a complete rotation:

like, that's the whole friend group right there. go read them. iykyk πŸ’€


and that's the page, bestie!! πŸ’– this one came from the ./mm source, dated October 2026, and it signs off as filemap_flush_range(9) β€” so if you cite her, cite her right. mwah. πŸ“πŸ‘‘

πŸ“¦ where this page comes from