__mpage_writepages(9)
πΈ __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 callingmpage_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
- 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