set_rgrp_preferences(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the set_rgrp_preferences(9) page from the Kernel API Manual πŸ’– this one is short but it’s giving important matchmaking energy, fr fr.

🌸 NAME 🌸

set_rgrp_preferences β€” run all the rgrps, selecting some we prefer to use ✨

πŸŽ€ SYNOPSIS πŸŽ€

void set_rgrp_preferences (struct gfs2_sbd *sdp );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sdp β€” the GFS2 superblock πŸ‘‘ that’s the main character struct we’re handing over, no cap.

πŸ”₯ DESCRIPTION πŸ”₯

okay so the purpose of this function is literally to select a subset of the resource groups and mark them as PREFERRED πŸ‘‘ lowkey a vibe.

and the way we do it is kind of iconic: each node prefers to use a unique set of rgrps to minimize glock contention. highkey smart, slay, periodt 🧚 ngl, that’s the whole vibe check, and honestly it ate.

🌈 SEE ALSO 🌈

Kernel file ./fs/gfs2/rgrp.c β€” plus the whole friend group: gfs2_setbit(9), gfs2_testbit(9), gfs2_bit_search(9), rs_cmp(9), gfs2_bitfit(9), gfs2_rbm_from_block(9), gfs2_rbm_add(9), gfs2_unaligned_extlen(9), gfs2_free_extlen(9), gfs2_bitcount(9), gfs2_rgrp_verify(9), gfs2_blk2rgrpd(9), gfs2_rgrpd_get_first(9), gfs2_rgrpd_get_next(9), __rs_deltree(9), gfs2_rs_deltree(9), gfs2_rs_delete(9), return_all_reservations(9), compute_bitstructs(9), gfs2_ri_total(9), read_rindex_entry(9), gfs2_ri_update(9), gfs2_rindex_update(9), gfs2_rgrp_go_instantiate(9), gfs2_rgrp_brelse(9), gfs2_fitrim(9), rs_insert(9), rgd_free(9), rg_mblk_search(9), gfs2_next_unreserved_block(9), gfs2_reservation_check_and_update(9), gfs2_rbm_find(9), try_rgrp_unlink(9), gfs2_rgrp_congested(9), gfs2_rgrp_used_recently(9), fast_to_acquire(9), gfs2_inplace_reserve(9), gfs2_inplace_release(9), gfs2_alloc_extent(9), rgblk_free(9), gfs2_rgrp_dump(9), gfs2_adjust_reservation(9), gfs2_set_alloc_start(9), gfs2_alloc_blocks(9), __gfs2_free_blocks(9), gfs2_free_meta(9), gfs2_check_blk_type(9), gfs2_rlist_add(9), gfs2_rlist_alloc(9), gfs2_rlist_free(9).

iykyk, bestie: that’s the whole page 🫢 this little cutie comes from ./fs/gfs2, dated October 2026, and it’s out here doing set_rgrp_preferences(9) things. bye bestie πŸ’‹βœ¨
πŸ“¦ where this page comes from