wb_get_create_current(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the bdi of 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:


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