fillup_metapath(9)
β¨ fillup_metapath(9) β the glow-up guide β¨
okay so bestie, welcome to the kernel API manual, and today's main character is fillup_metapath π
it's literally a kernel function for GFS2 and it's giving "i handle metadata paths at specific heights," so let's get into it π
πΈ SYNOPSIS πΈ
int fillup_metapath (struct gfs2_inode *ip , struct metapath *mp , int h
);
like, that's the whole signature β short, iconic, no notes β¨
π ARGUMENTS π
ipβ The inode π bestie this is the inode we're working with, the whole reason we're here.mpβ The metapath π¦ this is the metapath buffer situation itself.hβ The height to which it should be mapped π literally the height, that's the assignment.
π§ DESCRIPTION π§
So the tea is: this function is similar to lookup_metapath, but instead of doing the lookup at one single height, it does lookups for a range of heights π₯ it's like lookup_metapath's extroverted sibling who can't just do one thing β it fills up buffers for the metadata path to a specific height, no cap β¨
π RETURN π
It returns an error or the number of buffers filled π so like, either something went wrong or you get a cute little count of how many buffers got filled. vibe check either way π«Ά
π SEE ALSO π
the extended universe, fr fr β all these references live in the Kernel file ./fs/gfs2/bmap.c:
gfs2_unstuffer_folio(9)gfs2_unstuff_dinode(9)find_metapath(9)metaptr1(9)metapointer(9)lookup_metapath(9)gfs2_extent_length(9)gfs2_hole_size(9)__gfs2_iomap_alloc(9)gfs2_alloc_size(9)__gfs2_iomap_get(9)gfs2_block_map(9)gfs2_journaled_truncate(9)sweep_bh_for_rgrps(9)find_nonnull_ptr(9)punch_hole(9)do_shrink(9)do_grow(9)gfs2_setattr_size(9)gfs2_free_journal_extents(9)gfs2_add_jextent(9)gfs2_map_journal_extents(9)gfs2_write_alloc_required(9)
that's the whole friend group, go say hi π
and that's the page, bestie π this little beauty comes from ./fs/gfs2 and it's dated October 2026, so go forth and fill up those metapaths β¨ 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