adjust_lpt_heap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 adjust_lpt_heap(9) 🌸

Ok bestie, welcome to the Kernel API Manual πŸ’– β€” this page is all about adjust_lpt_heap, and it's lowkey iconic kernel-internals behavior. No cap.

✨ NAME ✨

adjust_lpt_heap β€” move a changed heap entry up or down the heap. πŸ’… Periodt.

πŸŽ€ SYNOPSIS πŸŽ€

void adjust_lpt_heap (struct ubifs_info *c , struct ubifs_lpt_heap *heap , struct ubifs_lprops *lprops , int hpos , int cat );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • c β€” UBIFS file-system description object. πŸ’–
  • heap β€” LEB category heap. ✨
  • lprops β€” LEB properties to move. πŸŽ€
  • hpos β€” heap position of lprops. 🌸
  • cat β€” LEB category. 🫢

🌈 DESCRIPTION 🌈

Okay so here's the tea β˜•: changed entries in a heap are moved up or down until the parent's value is greater. That's the whole little shuffle vibe. πŸ’ƒ

And for LPT's category heaps, that value is either the amount of free space or the amount of dirty space, depending on the category. Literally depends on the category, bestie. πŸ§šπŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

If you're going down the kernel rabbit hole πŸ‡βœ¨, the kernel file is ./fs/ubifs/lprops.c, and the whole related squad is:


Mwah πŸ’‹ this page is from source/version ./fs/ubifs, dated October 2026, and it's literally adjust_lpt_heap(9). Slay. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from