expand_journal_point(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… expand_journal_point(9) β€” from the Kernel API Manual, section 9, bestie πŸŽ€

okay so real talk, this little function lives in the kernel API manual (section 9, if you're keeping score) and it's genuinely one of those "tiny but load-bearing" situations. let's get into it ✨


🌸 NAME 🌸

expand_journal_point β€” takes a recovery journal journal_point that's pointing at both an increment and a decrement, and converts it into a single point that refers to one or the other. no cap, that's the whole job πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

struct journal_point expand_journal_point (struct journal_point
recovery_point , bool increment );

⭐ ARGUMENTS ⭐

  • recovery_point β€” the journal point you want converted. this is the one being transformed, so like, be nice to it 🫢
  • increment β€” a bool telling you whether the current entry is an increment. yes/no, simple as that ✨

πŸ‘‘ RETURN πŸ‘‘

the expanded journal point. that's it, that's the whole return value, iconic behaviour only πŸ’…


🌈 DESCRIPTION 🌈

okay so here's the situation. each data_vio gets exactly one recovery journal point β€” but it may need to make both increment and decrement entries in the same slab journal. one point, two possible moods, it's giving duality 😭

so to tell those two entries apart, the entry count of the expanded journal point is twice the actual recovery journal entry count for increments, and one more than that for decrements. so like β€” increments get the even numbers, decrements get the odd ones. math ate, fr fr πŸ”₯


🧚 SEE ALSO 🧚

all of these live in the kernel file ./drivers/md/dm-vdo/slab-depot.c, and honestly? the guest list is long. go read them, they're all main character energy πŸ‘‘


and that's the whole page bestie, go forth and expand those points πŸ’œ

this drop came to you straight out of ./drivers/md/dm-vdo, dated October 2026 β€” mwah, catch you on the next man page πŸ“βœ¨
πŸ“¦ where this page comes from