netfs_resize_file(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

netfs_resize_file β€” note that a file got resized ✨

Hiii bestie! You're on the netfs_resize_file(9) page from the Kernel API Manual, and honestly? It's giving β€œtiny function, important job” πŸŽ€. The whole point: let the netfs lib know a file got resized.


🌸 SYNOPSIS 🌸

void netfs_resize_file (struct netfs_inode *ictx , unsigned long long
       new_i_size , bool changed_on_server );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ictx β€” the netfs inode being resized, aka the main character here πŸ‘‘
  • new_i_size β€” the new file size, literally the number bestie πŸ“
  • changed_on_server β€” the change was applied to the server βœ…

🧚 DESCRIPTION 🧚

So the tea β˜•: you call this to inform the netfs lib that a file got resized so that it can adjust its state. That’s it, that’s the whole job β€” but don’t sleep on it, because state adjustments matter, iykyk πŸ’œ.


🌈 SEE ALSO 🌈

All the linked besties 🫢:


Source/version vibes: ./include/linux Β· dated: October 2026 Β· page: netfs_resize_file(9). Byeee, go resize responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from