gfs2_log_release_revokes(9)
π gfs2_log_release_revokes(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a lil kernel function called gfs2_log_release_revokes, and honestly? it does exactly what it says on the tin. no cap. let's get into it π«Ά
β¨ NAME β¨
gfs2_log_release_revokes β release a given number of revokes. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void gfs2_log_release_revokes (struct gfs2_sbd *sdp , unsigned int
revokes );
literally just hand it a superblock and a count of revokes and it's out of your hair. returns void β nothing back, no drama, no receipts, periodt. π
π¦ ARGUMENTS π¦
sdpβ the GFS2 superblock. the main character of this whole operation tbh πrevokesβ the number of revokes to release. yes, it'sunsigned int, yes you need the right number, don't come for me π
π DESCRIPTION π
okay so here's the one thing you cannot skip: sdp->sd_log_flush_lock must be held.
that's it. that's the entire description. short queen energy β¨ but fr fr, if you're calling this without holding that lock, we need to talk π
no lock, no call. i don't make the rules, the kernel does π
π SEE ALSO π
take a lil stroll through the kernel file here β it's ./fs/gfs2/log.c β and while you're in there, these are all your besties:
gfs2_struct2blk(9)gfs2_remove_from_ail(9)gfs2_ail1_start_one(9)gfs2_ail1_flush(9)gfs2_ail1_start(9)gfs2_ail1_empty_one(9)gfs2_ail1_empty(9)gfs2_log_is_empty(9)gfs2_log_release(9)__gfs2_log_try_reserve(9)__gfs2_log_reserve(9)gfs2_log_try_reserve(9)gfs2_log_reserve(9)log_distance(9)calc_reserved(9)gfs2_flush_revokes(9)gfs2_write_log_header(9)log_write_header(9)gfs2_ail_drain(9)empty_ail1_list(9)gfs2_trans_drain(9)__gfs2_log_flush(9)gfs2_merge_trans(9)gfs2_log_commit(9)gfs2_log_shutdown(9)gfs2_logd(9)
like, that's a whole friend group right there π₯ go read all of them, i'll wait π
π sign-off π
this lil page lives in ./fs/gfs2, stamped October 2026, and it's brought to you by the Kernel API Manual β¨ mwah, go hold that flush lock bestie, ily π§π
π¦ 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