wb_split_bdi_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

wb_split_bdi_pages(9) is serving Kernel API Manual realness today, and honestly? iconic. πŸ’…


NAME πŸ’–

wb_split_bdi_pages β€” split nr_pages to write according to bandwidth. periodt.


SYNOPSIS ✨

long wb_split_bdi_pages (struct bdi_writeback *wb , long nr_pages );

ARGUMENTS πŸŽ€

  • wb β€” the target bdi_writeback to split nr_pages to. she's the main character here 🫢
  • nr_pages β€” number of pages to write for the whole bdi. yes bestie, the whole thing 😭

DESCRIPTION πŸ¦‹

okay so here's the vibe: this function splits wb's portion of nr_pages according to wb's write bandwidth in relation to the total write bandwidth of all wb's with dirty inodes on wb->bdi. πŸ”₯

it's giving proportional-split energy, and the math is literally doing the thing. no cap. πŸ’œ


SEE ALSO 🌈

the kernel file is ./fs/fs-writeback.c, and these are the related girties β€” go read them, iykyk πŸ‘‘


and that's the page, bestie 🫢 this lil beauty is signed off from the ./fs source/version corner, dated October 2026. slay ✨

πŸ“¦ where this page comes from