wb_split_bdi_pages(9)
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 targetbdi_writebackto splitnr_pagesto. she's the main character here π«Άnr_pagesβ number of pages to write for the wholebdi. 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 π
inode_io_list_move_locked(9)wb_wait_for_completion(9)inode_cgwb_move_to_attached(9)locked_inode_to_wb_and_lock_list(9)inode_to_wb_and_lock_list(9)inode_switch_wbs(9)cleanup_offline_cgwb(9)wbc_attach_and_unlock_inode(9)wbc_attach_fdatawrite_inode(9)wbc_detach_inode(9)wbc_account_cgroup_owner(9)bdi_split_work_to_wbs(9)cgroup_writeback_by_id(9)cgroup_writeback_umount(9)wb_start_background_writeback(9)filemap_dontcache_kick_writeback(9)__mark_inode_dirty(9)writeback_inodes_sb_nr(9)writeback_inodes_sb(9)try_to_writeback_inodes_sb(9)sync_inodes_sb(9)write_inode_now(9)sync_inode_metadata(9)
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
- 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