gfs2_log_try_reserve(9)
π gfs2_log_try_reserve(9) π
okay so bestie, welcome to the Kernel API Manual β this page is literally about gfs2_log_try_reserve(9), and itβs giving βtry to make a log reservationβ energy. no cap. π
β¨ NAME β¨
gfs2_log_try_reserve β Try to make a log reservation
πΈ SYNOPSIS πΈ
bool gfs2_log_try_reserve (struct gfs2_sbd *sdp , struct gfs2_trans *tr
, unsigned int *extra_revokes );
π ARGUMENTS π
sdpβ The GFS2 superblock. iconic struct, no notes. πtrβ The transaction. yes bestie, that transaction. β¨extra_revokesβ The number of additional revokes reserved (output). itβs an output, so itβs giving results back. π«Ά
π¦ DESCRIPTION π¦
So this one is similar to gfs2_log_reserve, but thereβs a lock situation: sdp->sd_log_flush_lock must be held for correct revoke accounting. periodt.
lock check, bestie: sdp->sd_log_flush_lock has to be held. not optional, not a vibe β itβs for correct revoke accounting. π
π₯ SEE ALSO π₯
Kernel file ./fs/gfs2/log.c β and the whole ensemble cast:
- Kernel file
./fs/gfs2/log.c 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_revokes(9)gfs2_log_release(9)__gfs2_log_try_reserve(9)__gfs2_log_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)
cute sign-off time: this pageβs source/version is ./fs/gfs2, and the date is October 2026 β thatβs the footer, bestie, bye! π
β¨
π¦ 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