ext2_free_data(9)
π NAME π
Okay bestie, welcome to ext2_free_data(9) from the Kernel API Manual β this one is literally about freeing a list of data blocks β¨
πΈ SYNOPSIS πΈ
void ext2_free_data (struct inode *inode , __le32 *p , __le32 *q );
π ARGUMENTS π
inodeβ the inode we are dealing with, main character energy πpβ array of block numbers, slayqβ points immediately past the end of the array, iykyk
π¦ DESCRIPTION π¦
So whatβs the vibe? We are freeing all blocks referred from that array β and yes, the numbers are stored as little-endian 32-bit, no cap β and weβre updating inode->i_blocks appropriately π
π SEE ALSO π
Bestie, go check the kernel file ./fs/ext2/inode.c β and these related functions are also iconic:
ext2_block_to_path(9)ext2_get_branch(9)ext2_find_near(9)ext2_find_goal(9)ext2_blks_to_allocate(9)ext2_alloc_blocks(9)ext2_alloc_branch(9)ext2_splice_branch(9)ext2_find_shared(9)ext2_free_branches(9)
Signed off by ./fs/ext2 in October 2026 β ext2_free_data(9), periodt π«Άπ
π¦ 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