gfs2_adjust_reservation(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” this page is gfs2_adjust_reservation(9), and it does exactly one job: it adjusts (or honestly just removes) a reservation after an allocation. that's the whole vibe. πŸŽ€

✨ SYNOPSIS ✨

void gfs2_adjust_reservation (struct gfs2_inode *ip , const struct gfs2_rbm *rbm , unsigned len );

like, literally copy it exactly, no cap πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • ip β€” the inode we have just allocated blocks for. yeah. the whole reason we're here. main character energy fr.
  • rbm β€” the start of the allocated blocks. it's giving "beginning of the block situation" ✨
  • len β€” the extent length. how long the extent is. that's it, that's the girl πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

so picture this: an allocation already happened, and now the reservation needs its little post-allocation glow-up. that's what this does β€” it adjusts a reservation after an allocation has taken place.

and here's the ✨plot twist✨: if the reservation does not match the allocation, or if it is now empty, then it is removed. gone. deleted. not me ghosting a stale reservation 😭

lowkey important: both of those conditions mean the reservation gets removed β€” mismatch or empty. don't forget the second one, bestie.

🌈 SEE ALSO 🌈

the kernel file is ./fs/gfs2/rgrp.c β€” that's where all this lives, iykyk 🫢

and because the kernel devs were feeling generous, here's the whole friend group (keep them in order, they're iconic):


and that's the page!! 🫢 sourced straight from ./fs/gfs2, stamped October 2026 β€” catch you in the next (9) bestie, mwah πŸ’–πŸŒΈ

πŸ“¦ where this page comes from