goal_in_my_reservation(9)
π NAME π
okay bestie, welcome to goal_in_my_reservation(9) from the Kernel API Manual β¨ Officially the NAME line is just goal_in_my_reservation with a lil dash and no description after it β sheβs mysterious like that, no cap π
β¨ SYNOPSIS β¨
int goal_in_my_reservation (struct ext2_reserve_window *rsv ,
ext2_grpblk_t grp_goal , unsigned int group , struct super_block * sb );
π ARGUMENTS π
rsvβ the inodeβs reservation window, aka the VIP section π«Άgrp_goalβ the given goal block, relative to the allocation block groupgroupβ the current allocation block groupsbβ the filesystem super block
π¦ DESCRIPTION π¦
So hereβs the vibe check: this function tests whether the given goal block β group-relative, bestie β is inside the fileβs own block reservation window range. Itβs giving βare you on the list?β energy π
If the reservation window is outside the goal allocation group, return 0 β bouncer says no π«
Now, grp_goal (the given goal block) could be -1, which means thereβs no specific goal block. In that case, always return 1 β special-case slay, periodt β¨
If the goal block is within the reservation window, return 1; otherwise, return 0. Thatβs the whole test, and it ate π
π SEE ALSO π
Kernel file ./fs/ext2/balloc.c is where the lore lives, and the SEE ALSO crew is:
__rsv_window_dump(9)search_reserve_window(9)rsv_window_remove(9)ext2_init_block_alloc_info(9)ext2_discard_reservation(9)ext2_free_blocks(9)bitmap_search_next_usable_block(9)find_next_usable_block(9)ext2_try_to_allocate(9)find_next_reservable_window(9)alloc_new_reservation(9)try_to_extend_reservation(9)ext2_try_to_allocate_with_rsv(9)ext2_has_free_blocks(9)ext2_bg_has_super(9)ext2_bg_num_gdb(9)
source: ./fs/ext2, dated October 2026 β goal_in_my_reservation(9) signing off, 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