nommu_shrink_inode_mappings(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nommu_shrink_inode_mappings(9)

okay so bestie, welcome to the Kernel API Manual ✨ this one's a whole function, and she's got a big job: shrinking shared mappings on an inode without breaking anyone's vibe. let's get into it 🫢


🌸 NAME 🌸

nommu_shrink_inode_mappings β€” literally shrinks the shared mappings on an inode πŸ’«


✨ SYNOPSIS ✨

int nommu_shrink_inode_mappings (struct inode *inode , size_t size ,
       size_t newsize );

the way she takes three arguments and returns an int… main character energy fr fr πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • inode β€” the inode to check πŸ‘€ that's the one we're doing a vibe check on
  • size β€” the current filesize of the inode, like right now, as it stands
  • newsize β€” the proposed filesize of the inode, aka where we're tryna take her

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• this function checks the shared mappings on an inode on behalf of a shrinking truncate β€” and the whole point is making sure that any outstanding VMAs aren't broken 😭 like, not on our watch.

then it shrinks the vm_regions that extend beyond, so that do_mmap doesn't automatically grant mappings that are too large. no cap, that's the entire assignment πŸ’…


🌈 SEE ALSO 🌈

go read those next, iykyk 🧚


okay that's the whole page bestie, you ate that πŸ“ mwah πŸ’–

sign-off szn: this lil masterpiece lives over in ./mm, dated October 2026, and it's filed under nommu_shrink_inode_mappings(9) ⭐ periodt πŸ’œ

πŸ“¦ where this page comes from