__mpage_writepages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 __mpage_writepages(9) β€” Kernel API Manual 🌸

okay bestie, welcome to the Kernel API Manual corner of the group chat 🫢

✨ NAME ✨

__mpage_writepages β€” walk the list of dirty pages of the given address space & writepage() all of them πŸ’… periodt.

πŸŽ€ SYNOPSIS πŸŽ€

int __mpage_writepages (struct address_space *mapping , struct
       writeback_control *wbc , get_block_t get_block , int
       (*write_folio)(struct folio *folio, struct writeback_control *wbc) );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • mapping β€” the address space structure to write, no cap.
  • wbc β€” subtract the number of written pages from *wbc->nr_to_write, mmkay? πŸ’–
  • get_block β€” the filesystem's block mapper function, iconic.
  • write_folio β€” handler to call for each folio before calling mpage_write_folio 🧚

πŸ’– DESCRIPTION πŸ’–

This is a library function, and it implements the writepages address_space_operation ✨. It calls the write_folio handler for each folio. If the handler returns a value > 0, it calls mpage_write_folio to do the folio writeback πŸ”₯.

🌈 SEE ALSO 🌈

Kernel file ./fs/mpage.c and mpage_readahead(9) β€” go read bestie, iykyk πŸ‘‘


Source/version ./fs and date October 2026, signing off with a cute lil πŸ’‹ β€” byeee πŸŽ€

πŸ“¦ where this page comes from