calc_data_growth(9)
π calc_data_growth β a Kernel API Manual moment π
okay bestie, buckle up, because this is calc_data_growth(9) from the Kernel API Manual and it's literally here to do one iconic little job: figure out the approximate amount of new data that comes out of a budgeting request. that's it. that's the whole vibe. β¨
πΈ NAME πΈ
calc_data_growth β calculate approximate amount of new data from budgeting request.
like, approximate. don't come for her with your exact-math expectations, she said what she said π«Ά
π SYNOPSIS π
int calc_data_growth (const struct ubifs_info *c , const struct ubifs_budget_req *req );
returns an int, takes two pointers, no cap. very demure, very mindful π₯
π ARGUMENTS π
cβ the UBIFS file-system description object, aka the whole personality of the filesystem, passed in as aconst struct ubifs_info *. she's the main character here, respectfully πreqβ the budgeting request itself,const struct ubifs_budget_req *. this is the ask, the little "hey can i get some space" note that she's about to do math on π§
both are const pointers btw β she's looking, not touching. respect the boundaries β¨
π¦ SEE ALSO π¦
soooo many siblings, honestly a whole friend group. all of these live in the kernel file ./fs/ubifs/budget.c (listed in that exact order too, iykyk):
shrink_liability(9)run_gc(9)get_liability(9)make_free_space(9)ubifs_calc_min_idx_lebs(9)ubifs_calc_available(9)can_use_rp(9)do_budget_space(9)calc_idx_growth(9)calc_dd_growth(9)ubifs_budget_space(9)ubifs_release_budget(9)ubifs_convert_page_budget(9)ubifs_release_dirty_inode_budget(9)ubifs_reported_space(9)ubifs_get_free_space_nolock(9)ubifs_get_free_space(9)
go read them all, bestie, they're all in the same ./fs/ubifs family π
β this has been your girl from ./fs/ubifs, stamped October 2026, signing off β stay budgeting, stay approximate, slay the whole kernel ππ
π¦ 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