run_gc(9)
π run_gc(9) β from the Kernel API Manual π
π NAME π
run_gc β run garbage collector. ποΈβ¨
πΈ SYNOPSIS πΈ
int run_gc (struct ubifs_info *c );
π¦ ARGUMENTS π¦
cβ UBIFS file-system description object. πΎ
β¨ DESCRIPTION β¨
Okay so bestie, this function runs the garbage collector to make some more free space. π§Ήπ
Return vibe check: it returns zero if a free LEB has been produced, -EAGAIN if commit is required, and a negative error code in case of failure. No cap. ππ
π₯ SEE ALSO π₯
Check out the Kernel file ./fs/ubifs/budget.c and these references:
shrink_liability(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_data_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)
This page was brought to you by source ./fs/ubifs, dated October 2026 β mwah ππ
π¦ 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