nilfs_mdt_forget_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, welcome to nilfs_mdt_forget_block(9) β€” this one lives in the Kernel API Manual. The name says it all: nilfs_mdt_forget_block β€” discard dirty state and try to remove the page. It's giving cleanup-era main character energy ✨

✨ SYNOPSIS ✨

int nilfs_mdt_forget_block (struct inode *inode , unsigned long block );

πŸŽ€ ARGUMENTS πŸŽ€

  • inode β€” the inode of the meta data file. Yep, that meta data file.
  • block β€” block offset. That's the spot we're talking about.

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: nilfs_mdt_forget_block clears a dirty flag of the specified buffer, and then it tries to release the page that includes the buffer from a page cache. Lowkey it's doing a little "forget this block's dirty era and see if the page can bounce" situation πŸ’…

No cap, that's the whole move: clear the dirty flag, then try to release the page including the buffer from the page cache.

πŸ”₯ RETURN πŸ”₯

On success you get 0, iconic. On failure you get one of these negative error codes, fr fr:

  • -EBUSY β€” Page has an active buffer.
  • -ENOENT β€” Page cache has no page addressed by the offset.

🌈 SEE ALSO 🌈

Kernel file ./fs/nilfs2/mdt.c plus these function besties:


Byeee πŸ’œ β€” source/version: ./fs/nilfs2; date: October 2026; page: nilfs_mdt_forget_block(9). Slay and stay safe out there 🫢

πŸ“¦ where this page comes from