wb_get_create_current(9)
π NAME π
okay bestie, this page is wb_get_create_current(9) from the Kernel API Manual, and the name is literally wb_get_create_current - get or create wb for %current on a bdi β¨. no cap.
π SYNOPSIS π
hereβs the signature in all its glory:
struct bdi_writeback * wb_get_create_current (struct backing_dev_info
*bdi , gfp_t gfp );
π ARGUMENTS π
bdiβ thebdiof interest πgfpβ the allocation mask π
β¨ DESCRIPTION β¨
So this one is equivalent to wb_get_create on currentβs memcg β periodt π
. It gets called from a relatively hot path, and it optimizes the common cases using wb_find_current π₯.
π¦ SEE ALSO π¦
Kernel file ./include/linux/backing-dev.h, plus this whole friend group:
writeback_in_progress(9)inode_cgwb_enabled(9)wb_find_current(9)inode_to_wb(9)unlocked_inode_to_wb_begin(9)unlocked_inode_to_wb_end(9)
mwah π cute sign-off: the footer credits ./include/linux, dates this iconic page October 2026, and reminds you itβs wb_get_create_current(9) β 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